1.0.0 • Published 4 years ago
convert-es5-plugin v1.0.0
convert-es5-plugin
一个将 es6+ 语法转换成 es5 的 webpack 插件
安装
$ yarn add convert-es5-plugin -D
使用
在 webpack.config.js 文件中,找到 plugins
配置项。
// 导入
const ConvertES5Plugin = require('convert-es5-plugin');
module.exports = {
...
plugins: [
...
// 使用
new ConvertES5Plugin()
]
...
};
1.0.0
4 years ago