3 Star 1 Fork 0

@ccit-web/vue3-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
babel.config.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
YCK 提交于 2022-01-11 11:12 +08:00 . feat
const presets = [
[
"@babel/preset-env",
{
useBuiltIns: "usage", // 这里配置usage 会自动根据你使用的方法以及你配置的浏览器支持版本引入对于的方法。
corejs: "3.20.2", // 指定 corejs 版本
targets: {
ie: "11",
firefox: "60",
chrome: "67",
safari: "11.1",
},
},
],
[
"@babel/preset-typescript",
{
allExtensions: true, //支持所有文件扩展名
},
],
];
const plugins = [
"babel-plugin-transform-vue-jsx",
[
"@babel/plugin-transform-runtime",
{
corejs: 3,
},
],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties",
// [
// "component",
// {
// "libraryName": "element-ui",
// "styleLibraryName": "theme-chalk"
// }
// ],
// [
// "import",
// {
// "libraryName": "vant",
// "libraryDirectory": "es",
// "style": true
// }
// ]
];
module.exports = {
plugins,
presets,
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ccit-web/vue3-1.git
git@gitee.com:ccit-web/vue3-1.git
ccit-web
vue3-1
vue3-1
master

搜索帮助