Commit 34d76d8c authored by 邓晓峰's avatar 邓晓峰

fix: 修复@arcgis/core问题

parent d866e21c
Pipeline #53201 passed with stages
...@@ -37,7 +37,7 @@ module.exports = { ...@@ -37,7 +37,7 @@ module.exports = {
ignoreMomentLocale: true, ignoreMomentLocale: true,
nodeModulesTransform: { nodeModulesTransform: {
type: 'none', type: 'none',
exclude: ['@wisdom-map/arcgismap', '@wisdom-map/amap', '@wisdom-map/basemap','swagger-ui-react', 'Cesium'], exclude: ['@wisdom-map/arcgismap', '@wisdom-map/amap', '@wisdom-map/basemap', 'swagger-ui-react', 'Cesium'],
}, },
proxy: proxy[NODE_ENV], proxy: proxy[NODE_ENV],
theme: { theme: {
...@@ -132,7 +132,10 @@ module.exports = { ...@@ -132,7 +132,10 @@ module.exports = {
}, },
alias: { alias: {
cesium: path.resolve(__dirname, cesiumBuild), cesium: path.resolve(__dirname, cesiumBuild),
'@esri/arcgis-html-sanitizer': path.resolve(__dirname, '../node_modules/@esri/arcgis-html-sanitizer/dist/esm/index.js') '@esri/arcgis-html-sanitizer': path.resolve(
__dirname,
'../node_modules/@esri/arcgis-html-sanitizer/dist/esm/index.js',
),
}, },
// esbuild: {} // esbuild: {}
......
...@@ -487,14 +487,10 @@ module.exports = options => { ...@@ -487,14 +487,10 @@ module.exports = options => {
.end(); .end();
} }
rule rule
.use('babel-loader') .use('babel-loader')
.loader(require.resolve('@umijs/deps/compiled/babel-loader')) .loader(require.resolve('@umijs/deps/compiled/babel-loader'))
.options( .options(babelOpts);
babelOpts
);
if ((isProd && defineConfig.analyze) || process.env.ANALYZE) { if ((isProd && defineConfig.analyze) || process.env.ANALYZE) {
const mergeAnalyze = Object.assign( const mergeAnalyze = Object.assign(
......
...@@ -88,8 +88,7 @@ ...@@ -88,8 +88,7 @@
], ],
"resolutions": { "resolutions": {
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"webpack": "^5.70.0", "webpack": "^5.70.0"
"@esri/arcgis-html-sanitizer": "2.10.0"
}, },
"dependencies": { "dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
...@@ -175,7 +174,6 @@ ...@@ -175,7 +174,6 @@
"@babel/register": "7.4.0", "@babel/register": "7.4.0",
"@commitlint/cli": "^9.1.2", "@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2", "@commitlint/config-conventional": "^9.1.2",
"@esri/arcgis-html-sanitizer": "2.10.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3", "@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@svgr/webpack": "4.3.3", "@svgr/webpack": "4.3.3",
"@umijs/bundler-utils": "3.3.7", "@umijs/bundler-utils": "3.3.7",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment