Skip to content

Commit b722e42

Browse files
committed
no defaul cache groups
1 parent aab281d commit b722e42

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

packages/suite-build/configs/base.webpack.config.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,28 @@ const config: webpack.Configuration = {
6161
},
6262
},
6363
optimization: {
64-
splitChunks: {
65-
cacheGroups: {
66-
react: {
67-
chunks: 'initial',
68-
name: 'react',
69-
test: /[\\/]node_modules[\\/]react/,
70-
priority: -10,
71-
},
72-
vendors: {
73-
chunks: 'initial',
74-
name: 'vendors',
75-
test: /[\\/]node_modules[\\/](?!react)/,
76-
priority: -15,
77-
},
78-
components: {
79-
chunks: 'initial',
80-
name: 'components',
81-
test: /[\\/]packages[\\/]components[\\/]/,
82-
priority: -20,
83-
},
84-
},
85-
},
64+
// splitChunks: {
65+
// cacheGroups: {
66+
// react: {
67+
// chunks: 'initial',
68+
// name: 'react',
69+
// test: /[\\/]node_modules[\\/]react/,
70+
// priority: -10,
71+
// },
72+
// vendors: {
73+
// chunks: 'initial',
74+
// name: 'vendors',
75+
// test: /[\\/]node_modules[\\/](?!react)/,
76+
// priority: -15,
77+
// },
78+
// components: {
79+
// chunks: 'initial',
80+
// name: 'components',
81+
// test: /[\\/]packages[\\/]components[\\/]/,
82+
// priority: -20,
83+
// },
84+
// },
85+
// },
8686
minimizer: [
8787
new TerserPlugin({
8888
exclude: /static\/connect/, // connect is already minimized with specific rules

0 commit comments

Comments
 (0)