Commit d866e21c authored by 邓晓峰's avatar 邓晓峰

fix: 修复@arcgis/core问题

parent 08f51f3d
Pipeline #53200 waiting for manual action 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,6 +132,7 @@ module.exports = { ...@@ -132,6 +132,7 @@ 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')
}, },
// esbuild: {} // esbuild: {}
......
...@@ -488,6 +488,14 @@ module.exports = options => { ...@@ -488,6 +488,14 @@ module.exports = options => {
} }
rule
.use('babel-loader')
.loader(require.resolve('@umijs/deps/compiled/babel-loader'))
.options(
babelOpts
);
if ((isProd && defineConfig.analyze) || process.env.ANALYZE) { if ((isProd && defineConfig.analyze) || process.env.ANALYZE) {
const mergeAnalyze = Object.assign( const mergeAnalyze = Object.assign(
{ {
......
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