mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(webpack): don't inline scoped packages
This commit is contained in:
parent
d9bb3fa2ee
commit
0a74f1e239
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user