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