mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 17:32:31 +00:00
fix(vite): do not inline dynamic imports in server (#5506)
* fix(vite): do not inline dynamic imports in server * chore: add link to upstream pr
This commit is contained in:
parent
93d60a30de
commit
00c1daebaf
@ -64,6 +64,8 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
output: {
|
output: {
|
||||||
entryFileNames: 'server.mjs',
|
entryFileNames: 'server.mjs',
|
||||||
preferConst: true,
|
preferConst: true,
|
||||||
|
// TODO: https://github.com/vitejs/vite/pull/8641
|
||||||
|
inlineDynamicImports: false,
|
||||||
format: 'module'
|
format: 'module'
|
||||||
},
|
},
|
||||||
onwarn (warning, rollupWarn) {
|
onwarn (warning, rollupWarn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user