1 Star 2 Fork 0

Cesium/vue-cesium-v2

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.babelrc.js 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
zouyaoji 提交于 2019-11-30 23:44 +08:00 . added unit test
module.exports = function (api) {
api.cache(true)
const presets = [
['@babel/preset-env', { modules: false }],
]
const plugins = [
// Stage 0
'@babel/plugin-proposal-function-bind',
// Stage 1
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-logical-assignment-operators',
['@babel/plugin-proposal-optional-chaining', { loose: false }],
['@babel/plugin-proposal-pipeline-operator', { proposal: 'minimal' }],
['@babel/plugin-proposal-nullish-coalescing-operator', { loose: false }],
'@babel/plugin-proposal-do-expressions',
// Stage 2
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',
// Stage 3
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { loose: false }],
'@babel/plugin-proposal-json-strings',
// // Other
['@babel/plugin-transform-runtime', { corejs: 2, helpers: true, regenerator: true, useESModules: true }]
]
const env = {
test: {
plugins: [
'istanbul'
]
}
}
return {
presets,
plugins,
env
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cesium_processing/vue-cesium-v2.git
git@gitee.com:cesium_processing/vue-cesium-v2.git
cesium_processing
vue-cesium-v2
vue-cesium-v2
master

搜索帮助