| 12345678910111213 |
- module.exports = {
- presets: ['@vue/cli-plugin-babel/preset'],
- env: {
- development: {
- // 解决 Vue 热加载编译速度慢问题
- plugins: ['dynamic-import-node'],
- },
- production: {
- // 发布库到其它项目时,避免保留 ?. / ?? 导致旧构建器解析失败
- plugins: ['@babel/plugin-transform-optional-chaining', '@babel/plugin-transform-nullish-coalescing-operator'],
- },
- },
- };
|