标签: javascript webpack babel webpack-4
我能够加载sayHello.js:
export const sayHello = (name) => `Hello, ${name}`;
来自index.js
import { sayHello } from './sayHello'; console.log(sayHello('John'));
webpack能够生成dist / main.js,而无需使用babel-loader。
在没有babel-loader的情况下,如何能够转换和捆绑es6语法?