mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
fix(webpack): avoid module reevaluation
This commit is contained in:
@ -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",
|
||||||
|
@ -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: {
|
||||||
|
Reference in New Issue
Block a user