fix(webpack): don't inline scoped packages

This commit is contained in:
Pooya Parsa 2021-04-20 15:22:24 +02:00
parent d9bb3fa2ee
commit 0a74f1e239

View File

@ -41,7 +41,7 @@ function serverStandalone (ctx: WebpackConfigContext) {
'!', '!',
'-!', '-!',
'~', '~',
'@', '@/',
'#', '#',
...ctx.options.build.transpile ...ctx.options.build.transpile
] ]
@ -53,8 +53,10 @@ function serverStandalone (ctx: WebpackConfigContext) {
request[0] === '/' || request[0] === '/' ||
inline.find(prefix => request.startsWith(prefix)) inline.find(prefix => request.startsWith(prefix))
) { ) {
// console.log('Inline', request)
return cb(null, false) return cb(null, false)
} }
// console.log('Ext', request)
return cb(null, true) return cb(null, true)
}) })
} }