You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/04/26 02:08:58 UTC
(incubator-answer) 09/09: chore: ui add split codemirrow bundle
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 4fdc3c92fb228099bc48fd0c1f2f3fca03f8a5a4
Author: shuai <li...@sifou.com>
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: {