From 5393a55482db21b5cb04ae3774d0f97e37789a3c Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Sat, 1 Feb 2020 13:54:42 +0100 Subject: [PATCH] fix: fix webpack config --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 01ce06558..029b01a10 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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);