Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

chore: ui add split codemirrow bundle

shuai4fdc3c92fb22
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: {