fix: fix webpack config
This commit is contained in:
parent
783cd7d871
commit
5393a55482
@ -298,7 +298,7 @@ async function webpackConfig() {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test(module, chunk) {
|
||||
return module.context.match(/[\\/]node_modules[\\/]/);
|
||||
return module.context && module.context.match(/[\\/]node_modules[\\/]/);
|
||||
},
|
||||
name(module, chunks, cacheGroupKey) {
|
||||
const moduleFileName = module.identifier().split('/').reduceRight(item => item);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user