报错:Uncaught ReferenceError: Cannot access ‘l‘ before initialization

在文件 .babelrcbabel.config.jswebpack.config.js 下配置

.babel 或 babel.config.js

"plugins": [
    "@babel/plugin-transform-runtime"
]

  
 webpack.config.js,详见 Webpack target

module.exports = {
  target: ['web', 'es5'],
}

你可能感兴趣的:(Webpack,前端)