Skip to content

Commit 4e4a72d

Browse files
committed
chore(bundler-vite): revert ssr.noExternal option
1 parent f8cdc9e commit 4e4a72d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/bundler-vite/src/plugins/mainPlugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import '@vuepress/client/app'
7979
),
8080
output: {
8181
// also add hash to ssr entry file, so that users could build multiple sites in a single process
82-
entryFileNames: `[name].[hash].js`,
82+
entryFileNames: `[name].[hash].mjs`,
8383
},
8484
preserveEntrySignatures: 'allow-extension',
8585
},
@@ -90,6 +90,7 @@ import '@vuepress/client/app'
9090
},
9191
ssr: {
9292
format: 'esm',
93+
noExternal: clientPackages,
9394
},
9495
}
9596
},

0 commit comments

Comments
 (0)