Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Commit

Permalink
Upgrade to latest Webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed Jul 22, 2017
1 parent 8681ac2 commit 05df3d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@ 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.
babelrc: false,
presets: ['es2015', 'stage-0'],
}
},
{
test: /\.json$/,
loader: 'json'
}
]
},
node: {
Expand Down Expand Up @@ -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(),
]
};

Expand All @@ -67,7 +62,7 @@ function webpackBuild(filename, libraryName, version) {
'babel-standalone': 'Babel',
};
}
return webpackStream(config);
return webpackStream(config, webpack);
}

const minifyAndRename = lazypipe()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 05df3d7

Please sign in to comment.