This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch feat/1.3.1/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/feat/1.3.1/ui by this push:
new a1bd2b40 chore: ui add split codemirrow bundle
a1bd2b40 is described below
commit a1bd2b40d8f9fab52e2ecd7bbc21ca5c961bcbee
Author: shuai <[email protected]>
AuthorDate: Fri Apr 26 10:07:28 2024 +0800
chore: ui add split codemirrow bundle
---
ui/config-overrides.js | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/ui/config-overrides.js b/ui/config-overrides.js
index 469974bc..40e0e8a1 100644
--- a/ui/config-overrides.js
+++ b/ui/config-overrides.js
@@ -81,9 +81,20 @@ module.exports = {
},
codemirror: {
name: 'codemirror',
- test: /[\/]node_modules[\/](codemirror)[\/]/,
+ test: /[\/]node_modules[\/](\@codemirror)[\/]/,
priority: 9,
reuseExistingChunk: true,
+ minChunks: 1,
+ chunks: 'initial',
+ enforce: true,
+ },
+ lezer: {
+ name: 'lezer',
+ test: /[\/]node_modules[\/](\@lezer)[\/]/,
+ priority: 9,
+ reuseExistingChunk: true,
+ minChunks: 1,
+ chunks: 'initial',
enforce: true,
},
reactDom: {