From 556322f9939155ba34e6cddb34c43a193ee357ab Mon Sep 17 00:00:00 2001 From: Kevin Chavez Date: Wed, 22 Jan 2020 13:22:04 -0800 Subject: [PATCH] update webpack deps --- gulpfile.js | 8 +++++++- package.json | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 804108bd78..4f0f2a26fb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -71,7 +71,12 @@ var COPYRIGHT_HEADER = `/** */ `; +var wpack = null; + var buildDist = function(opts) { + if (wpack !== null) { + return wpack; + } var webpackOpts = { externals: { immutable: { @@ -115,7 +120,7 @@ var buildDist = function(opts) { if (!opts.debug) { webpackOpts.plugins.push(new UglifyJsPlugin()); } - return webpackStream(webpackOpts, null, function(err, stats) { + wpack = webpackStream(webpackOpts, null, function(err, stats) { if (err) { throw new gulpUtil.PluginError('webpack', err); } @@ -123,6 +128,7 @@ var buildDist = function(opts) { gulpUtil.log('webpack', '\n' + stats.toString({colors: true})); } }); + return wpack; }; gulp.task( diff --git a/package.json b/package.json index e245b08310..6949983389 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "gulp-flatten": "^0.4.0", "gulp-header": "^2.0.9", "gulp-if": "^3.0.0", - "gulp-rename": "^1.4.0", + "gulp-rename": "2", "gulp-util": "^3.0.6", "jest": "^24.9.0", "prettier": "1.19.1", @@ -80,8 +80,8 @@ "react-test-renderer": "^16.0.0", "stats-webpack-plugin": "^0.6.2", "through2": "^3.0.1", - "uglifyjs-webpack-plugin": "^1.1.6", - "webpack-stream": "^4.0.0" + "uglifyjs-webpack-plugin": "2", + "webpack-stream": "5.2.1" }, "devEngines": { "node": "10.x || 12.x || 13.x",