Webpack4 使用Babel处理ES6语法的方法示例 修改index.js内容,写一些ES6的语法:constarr=[newPromise(()=>{}),newPromise(()=>{})];arr.map(item=>{ Babel处理ES6