diff --git a/.umirc.ts b/.umirc.ts index 5ce0185..513ad5a 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -39,5 +39,12 @@ export default defineConfig({ proxy: proxy[REACT_APP_ENV || 'dev'], codeSplitting: { jsStrategy: 'granularChunks' - } + }, + chainWebpack(config, { webpack }) { + config.plugin('code-inspector-plugin').use(require('code-inspector-plugin').codeInspectorPlugin, [ + { + bundler: 'webpack', + }, + ]); + }, }) diff --git a/package.json b/package.json index 0fd3a7f..13f13eb 100644 --- a/package.json +++ b/package.json @@ -20,15 +20,18 @@ "braft-utils": "^3.0.2", "echarts": "^4.9.0", "moment": "^2.29.1", + "nvm": "^0.0.4", "qs": "^6.11.0", "react": "^18.2.0", "react-contexify": "^5.0.0", "react-dom": "^18.2.0", - "react-split-pane": "^0.1.92" + "react-split-pane": "^0.1.92", + "code-inspector-plugin": "^1.2.8" }, "devDependencies": { "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", + "code-inspector-plugin": "^1.2.8", "cross-env": "^7.0.3", "typescript": "^4.1.2" }