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,
+1 -1
View File
@@ -13,7 +13,7 @@ export function monacoPluginConfig(config: any) {
entry: 'monaco-yaml',
worker: {
id: 'monaco-yaml/yamlWorker',
entry: 'monaco-yaml/yaml.worker'
entry: 'monaco-yaml/yaml.worker.js'
}
}
]
-10
View File
@@ -199,16 +199,6 @@ export default [
hideInMenu: true,
component: './cluster-management/cluster-detail'
},
// {
// name: 'clusterCreate',
// path: '/cluster-management/clusters/create',
// key: 'clusterCreate',
// icon: 'icon-cluster2-outline',
// selectedIcon: 'icon-cluster2-filled',
// defaultIcon: 'icon-cluster2-outline',
// hideInMenu: true,
// component: './cluster-management/cluster-create'
// },
{
name: 'credentials',
path: '/cluster-management/credentials',