Skip to content

Commit 6bf74d9

Browse files
committed
chore: update rspack config option
1 parent cfd5a79 commit 6bf74d9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"varsIgnorePattern": "^[_]*$"
9696
}
9797
],
98-
"max-len": ["error", { "code": 100, "ignoreComments": true }],
98+
"max-len": ["error", { "code": 120, "ignoreComments": true }],
9999
"object-curly-spacing": ["error", "always"],
100100
"prettier/prettier": [
101101
"error",

rspack.config.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,9 @@ module.exports = {
7777
maxAsyncRequests: 30,
7878
maxInitialRequests: 30,
7979
cacheGroups: {
80-
monaco: {
81-
chunks: 'async',
82-
test: /[\\/]node_modules[\\/]monaco-editor/,
83-
priority: 1000,
84-
name: 'monaco',
85-
reuseExistingChunk: true,
86-
},
8780
common: {
8881
chunks: 'all',
89-
test: /[\\/]node_modules[\\/](react|react-dom|@arco-design[\\/]web-react)/,
82+
test: /[\\/]node_modules[\\/](react|react-dom|@arco-design[\\/]web-react|@monaco-editor\/react)/,
9083
priority: 100,
9184
name: 'common',
9285
reuseExistingChunk: true,

0 commit comments

Comments
 (0)