1 Star 0 Fork 435

anonymous1132/element-plus

forked from element-plus/element-plus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
babel.config.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
hangzou 提交于 2020-11-28 18:56 . fix(build): fix utils esm build (#720)
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: true,
modules: false,
},
],
'@babel/typescript',
],
plugins: [
'@vue/babel-plugin-jsx',
'@babel/proposal-class-properties',
'@babel/transform-runtime',
'lodash',
],
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: ['element-plus'],
alias: {
'@element-plus': 'element-plus/lib',
},
},
],
],
},
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/anonymous111/element-plus.git
git@gitee.com:anonymous111/element-plus.git
anonymous111
element-plus
element-plus
dev

搜索帮助