Skip to content

Commit

Permalink
chore: fix native manifest plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Sep 19, 2024
1 parent 2087832 commit 097670c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,13 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
? [
config.build.manifest && enableNativePlugin
? // TODO: make this environment-specific
nativeManifestPlugin()
nativeManifestPlugin({
root: config.root,
outPath:
config.build.manifest === true
? '.vite/manifest.json'
: config.build.manifest,
})
: manifestPlugin(),
ssrManifestPlugin(),
...(enableBuildReport ? [buildReporterPlugin(config)] : []),
Expand Down

0 comments on commit 097670c

Please sign in to comment.