webpack 配置出错,解决如下:
rules: [{
test: /\.js$/,
exclude: /(node_modules)/,
use: ['babel-loader?cacheDirectory=true'],
// use: [{
// loader: 'babel-loader?cacheDirectory=true',
// options: {
// presets: [['es2015', {modules: false}]],
// plugins: ['syntax-dynamic-import']
// }
// }],
include: path.join(__dirname, 'src')
}