From 86a47a2fea5e7d616b5a3f7deaf123d5586f1cb1 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 16 Nov 2021 21:28:29 +0800 Subject: [PATCH] fix(vite): external modules under`/esm/` pattern (#1949) Co-authored-by: Ben Co-authored-by: pooya parsa --- packages/vite/src/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/server.ts b/packages/vite/src/server.ts index f85b92b4af..5b493e628a 100644 --- a/packages/vite/src/server.ts +++ b/packages/vite/src/server.ts @@ -42,6 +42,7 @@ export async function buildServer (ctx: ViteBuildContext) { noExternal: [ ...ctx.nuxt.options.build.transpile, // TODO: Use externality for production (rollup) build + /\/esm\/.*\.js$/, /\.(es|esm|esm-browser|esm-bundler).js$/, '/__vue-jsx', '#app',