From 0a74f1e2392b45024f3af20f3ded4bb6545911fc Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 20 Apr 2021 15:22:24 +0200 Subject: [PATCH] fix(webpack): don't inline scoped packages --- packages/webpack/src/configs/server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/webpack/src/configs/server.ts b/packages/webpack/src/configs/server.ts index 7a98788b22..172c89c78b 100644 --- a/packages/webpack/src/configs/server.ts +++ b/packages/webpack/src/configs/server.ts @@ -41,7 +41,7 @@ function serverStandalone (ctx: WebpackConfigContext) { '!', '-!', '~', - '@', + '@/', '#', ...ctx.options.build.transpile ] @@ -53,8 +53,10 @@ function serverStandalone (ctx: WebpackConfigContext) { request[0] === '/' || inline.find(prefix => request.startsWith(prefix)) ) { + // console.log('Inline', request) return cb(null, false) } + // console.log('Ext', request) return cb(null, true) }) }