fix: editor incompatibility with firefox79
This commit is contained in:
+12
-1
@@ -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
@@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user