4134540
babel-polyfill
添加polyfill
babel-plugin-external-helpers-2
抽出babel的助手函数, 避免每个文件都在顶部添加助手函数。但是要新加一个包含助手函数的js文件
babel-plugin-transform-runtime
- 替换助手函数
- 包括部分es6的API, 但是某些情况不会替换,比如
console.log('a'.repeat(3));
console.log(String.prototype.repeat.call('b', 3));
想请问下大家是如何配置的。