babel7 + corejs3升级
webpack.config.js中entry:babel-polyfill改为@babel/polyfillapp: ['@babel/polyfill', path.join(process.cwd(), 'src/main.js')],module.rules中,对js的处理function resolve(dir) { return path.join(process.cwd(), dir);}const initBabelInclude = [ resolve('sr
原创
2022-03-22 12:31:29 ·
1819 阅读 ·
0 评论