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:
Daniel Roe 2022-07-06 20:19:16 +01:00 committed by GitHub
parent 93d60a30de
commit 00c1daebaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ export async function buildServer (ctx: ViteBuildContext) {
output: {
entryFileNames: 'server.mjs',
preferConst: true,
// TODO: https://github.com/vitejs/vite/pull/8641
inlineDynamicImports: false,
format: 'module'
},
onwarn (warning, rollupWarn) {