fix(webpack): avoid module reevaluation

This commit is contained in:
Eduardo Speroni
2021-06-01 11:29:28 -03:00
parent 8df5cd6e2e
commit e26e202af7
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@
"ts-dedent": "2.1.1", "ts-dedent": "2.1.1",
"ts-loader": "8.1.0", "ts-loader": "8.1.0",
"vue-loader": "15.9.6", "vue-loader": "15.9.6",
"webpack": "5.31.2", "webpack": "5.38.1",
"webpack-bundle-analyzer": "4.4.0", "webpack-bundle-analyzer": "4.4.0",
"webpack-chain": "6.5.1", "webpack-chain": "6.5.1",
"webpack-cli": "4.6.0", "webpack-cli": "4.6.0",

View File

@ -140,6 +140,8 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
}, },
]); ]);
config.optimization.runtimeChunk('single');
config.optimization.splitChunks({ config.optimization.splitChunks({
cacheGroups: { cacheGroups: {
defaultVendor: { defaultVendor: {