fix: editor incompatibility with firefox79

This commit is contained in:
jialin
2026-01-09 20:51:48 +08:00
parent afcd3e5693
commit 10b2a8b4f9
33 changed files with 12316 additions and 630 deletions
+12 -1
View File
@@ -29,7 +29,7 @@ export default defineConfig({
defaultSizes: 'parsed' // stat // gzip
},
mfsu: {
exclude: ['lodash', 'ml-pca', 'monaco-editor']
exclude: ['lodash', 'ml-pca']
},
base: process.env.npm_config_base || '/',
...(isProduction
@@ -81,6 +81,17 @@ export default defineConfig({
routePrefetch: {
defaultPrefetch: 'intent'
},
// fastRefresh: false,
targets: {
firefox: 79
},
extraBabelIncludes: [
/node_modules\/react-error-overlay/,
/node_modules\/@umijs/,
/node_modules\/strip-ansi/,
/node_modules\/antd/,
/node_modules\/rc-/
],
keepalive: keepAlive,
locale: {
antd: true,