引入SuperMap iClient for Leaflet 报错

105 阅读1分钟

does not match the corresponding path on disk 'Logger.js'

image.png

原因是在babel.config.js中配置这个无效

image.png

.babelrc中配置,成功

{ 
"plugins": [
    [ "@supermap/babel-plugin-import",
    { 
    "libraryName": "@supermap/iclient-leaflet"
    }
    ] 
   ] }