参考资料:https://blog.csdn.net/sinat_41292836/article/details/116499810
babel.config.js
module.exports = { presets: [ [ '@vue/app', { targets: { browsers: ['ie >= 9', 'safari >= 7'] }, useBuiltIns: 'entry', polyfills: ['es6.promise', 'es6.symbol'] } ] ] }
main.js
import 'core-js' import 'regenerator-runtime/runtime'
vue.config.js (可选)
默认情况下 babel-loader 会忽略所有 node_modules 中的文件。如果你想要通过 Babel 显式转译一个依赖,可以在这个选项中列出来。transpileDependencies: ["luckysheet-common"]
标签:Vue,cli3,babel,js,兼容性问题,import,config From: https://www.cnblogs.com/CyLee/p/17158594.html