diff --git a/gulpfile.js b/gulpfile.js index 2121b5f..8c020a5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -9,12 +9,12 @@ const uglify = require('gulp-uglify'); function webpackBuild(filename, libraryName, version) { const config = { module: { - loaders: [ + rules: [ { //exclude: /node_modules/, test: /\.js$/, - loader: 'babel', - query: { + loader: 'babel-loader', + options: { // Some of the node_modules may have their own "babel" section in // their project.json (or a ".babelrc" file). We need to ignore // those as we're using our own Babel options. @@ -22,10 +22,6 @@ function webpackBuild(filename, libraryName, version) { presets: ['es2015', 'stage-0'], } }, - { - test: /\.json$/, - loader: 'json' - } ] }, node: { @@ -55,8 +51,7 @@ function webpackBuild(filename, libraryName, version) { /..\/..\/package/, '../../../../src/babel-package-shim' ), - new webpack.optimize.OccurenceOrderPlugin(), - new webpack.optimize.DedupePlugin() + new webpack.optimize.ModuleConcatenationPlugin(), ] }; @@ -67,7 +62,7 @@ function webpackBuild(filename, libraryName, version) { 'babel-standalone': 'Babel', }; } - return webpackStream(config); + return webpackStream(config, webpack); } const minifyAndRename = lazypipe() diff --git a/package.json b/package.json index aa8e7e9..c85eca3 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "npm-check-updates": "^2.8.9", "pump": "^1.0.2", "react": "^15.4.2", - "webpack": "^1.14.0", + "webpack": "^3.3.0", "webpack-stream": "^3.2.0" }, "keywords": [