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

fix: 修复@arcgis/core问题

parent d866e21c
Pipeline #53201 passed with stages
......@@ -37,7 +37,7 @@ module.exports = {
ignoreMomentLocale: true,
nodeModulesTransform: {
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],
theme: {
......@@ -132,7 +132,10 @@ module.exports = {
},
alias: {
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: {}
......
......@@ -487,14 +487,10 @@ module.exports = options => {
.end();
}
rule
.use('babel-loader')
.loader(require.resolve('@umijs/deps/compiled/babel-loader'))
.options(
babelOpts
);
.options(babelOpts);
if ((isProd && defineConfig.analyze) || process.env.ANALYZE) {
const mergeAnalyze = Object.assign(
......
......@@ -88,8 +88,7 @@
],
"resolutions": {
"babel-core": "7.0.0-bridge.0",
"webpack": "^5.70.0",
"@esri/arcgis-html-sanitizer": "2.10.0"
"webpack": "^5.70.0"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
......@@ -175,7 +174,6 @@
"@babel/register": "7.4.0",
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@esri/arcgis-html-sanitizer": "2.10.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@svgr/webpack": "4.3.3",
"@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