1 Star 0 Fork 153

zhengkai/vue-cesium

forked from zouyaoji/vue-cesium 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
babel.config.js 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
zouyaoji 提交于 2022-01-23 01:53 . chore: updated
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2022-01-13 22:19:45
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\babel.config.js
*/
module.exports = {
// ATTENTION!!
// Preset ordering is reversed, so `@babel/typescript` will called first
// Do not put `@babel/typescript` before `@babel/env`, otherwise will cause a compile error
// See https://github.com/babel/babel/issues/12066
presets: [
[
'@babel/env',
{
loose: false,
modules: false
}
],
'@babel/typescript'
],
plugins: [
'@vue/babel-plugin-jsx',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-logical-assignment-operators',
['@babel/plugin-proposal-private-methods', { loose: false }],
'@babel/transform-runtime'
],
overrides: [
{
test: /\.vue$/,
plugins: ['@babel/transform-typescript']
}
],
env: {
utils: {
ignore: ['**/*.test.ts', '**/*.spec.ts'],
presets: [
[
'@babel/env',
{
loose: true,
modules: false
}
]
],
plugins: [
[
'babel-plugin-module-resolver',
{
root: ['vue-cesium'],
alias: {
'@vue-cesium': 'vue-cesium/lib'
}
}
]
]
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/kai-zheng/vue-cesium.git
git@gitee.com:kai-zheng/vue-cesium.git
kai-zheng
vue-cesium
vue-cesium
dev

搜索帮助

0d507c66 1850385 C8b1a773 1850385