使用产品及版本信息:
//package.json(部分)
"dependencies": {
"@supermap/iclient-leaflet": "^11.1.0-beta",
"leaflet": "^1.9.4",
"pinia": "^2.1.3",
"vue": "^3.3.4"
},
"devDependencies": {
"@supermap/babel-plugin-import": "^0.0.1",
"@vitejs/plugin-vue": "^4.2.3",
"events": "^3.3.0",
"util": "^0.12.4",
"vite": "^4.3.9"
}
按照supermap官网手册添加.babelrc配置,但未说明vite.config.js中如何配置。
按照社区已有问答资料解决无效,参考博文“基于Vue快速搭建超图二维iClient开发环境”无效。
按es6语法按需引用,导入包失败: