Skip to content

Commit 097670c

Browse files
committed
chore: fix native manifest plugin
1 parent 2087832 commit 097670c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/vite/src/node/build.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,13 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
497497
? [
498498
config.build.manifest && enableNativePlugin
499499
? // TODO: make this environment-specific
500-
nativeManifestPlugin()
500+
nativeManifestPlugin({
501+
root: config.root,
502+
outPath:
503+
config.build.manifest === true
504+
? '.vite/manifest.json'
505+
: config.build.manifest,
506+
})
501507
: manifestPlugin(),
502508
ssrManifestPlugin(),
503509
...(enableBuildReport ? [buildReporterPlugin(config)] : []),

0 commit comments

Comments
 (0)