From 00c1daebafe0166047a031932fcefbc65c1ffac1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 6 Jul 2022 20:19:16 +0100 Subject: [PATCH] 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 --- packages/vite/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vite/src/server.ts b/packages/vite/src/server.ts index c91ff0c023..b995fe7dff 100644 --- a/packages/vite/src/server.ts +++ b/packages/vite/src/server.ts @@ -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) {