报错:Uncaught ReferenceError: Cannot access ‘l‘ before initialization
在文件 .babelrc
或 babel.config.js
,webpack.config.js
下配置
.babel 或 babel.config.js
"plugins": ["@babel/plugin-transform-runtime"
]
webpack.config.js,详见 Webpack target
module.exports = {target: ['web', 'es5'],
}