diff --git a/gulpfile.js b/gulpfile.js index 5e87f4232..01847f1da 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -46,17 +46,15 @@ var bannerPlugin = new webpack.BannerPlugin({ }); var webpackModule = { - loaders: [ - { - test: /\.js$/, - exclude: /node_modules/, - loader: 'babel-loader', - query: { - cacheDirectory: true, // use cache to improve speed - babelrc: true // use the .baberc file - } + rules: [{ + test: /\.js$/, + loader: 'babel-loader', + exclude: /node_modules/, + options: { + cacheDirectory: true, // use cache to improve speed + babelrc: true // use the .baberc file } - ], + }], // exclude requires of moment.js language files wrappedContextRegExp: /$^/