You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/10/12 11:47:10 UTC

[incubator-streampipes] 02/03: [hotfix] Update webpack version to v5

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-426
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 72ebb329921c173743260b84ff9b220aeda87912
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Mon Oct 11 10:53:53 2021 +0200

    [hotfix] Update webpack version to v5
---
 ui/package.json            | 13 ++++++-------
 ui/webpack.partial.base.js |  5 ++++-
 ui/webpack.partial.dev.js  |  4 ++--
 ui/webpack.partial.prod.js |  4 ++--
 4 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/ui/package.json b/ui/package.json
index d27227d..84dae7b 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -60,7 +60,7 @@
     "file-saver": "1.3.8",
     "jquery": "2.1.3",
     "jquery-ui-dist": "1.12.1",
-    "jshint": "2.11.1",
+    "jshint": "^2.13.1",
     "jsplumb": "^2.15.5",
     "jszip": "3.2.1",
     "konva": "3.2.4",
@@ -133,11 +133,10 @@
     "tslint": "~6.1.0",
     "tslint-config-prettier": "^1.15.0",
     "typescript": "4.3.5",
-    "uglifyjs-webpack-plugin": "2.2.0",
-    "webpack": "4.44.1",
-    "webpack-bundle-analyzer": "^3.9.0",
-    "webpack-cli": "3.3.12",
-    "webpack-dev-server": "3.11.0",
-    "webpack-merge": "^4.2.1"
+    "uglifyjs-webpack-plugin": "^2.2.0",
+    "webpack": "^5.58.1",
+    "webpack-cli": "^4.9.0",
+    "webpack-dev-server": "^4.3.1",
+    "webpack-merge": "^5.8.0"
   }
 }
diff --git a/ui/webpack.partial.base.js b/ui/webpack.partial.base.js
index ec5ad0a..778f5ae 100644
--- a/ui/webpack.partial.base.js
+++ b/ui/webpack.partial.base.js
@@ -27,6 +27,9 @@ module.exports = {
         alias: {
             npm: path.join(__dirname, 'node_modules'),
             legacy: path.join(__dirname, 'src', 'assets', 'lib'),
+        },
+        fallback: {
+            "assert": false
         }
     }
-};
\ No newline at end of file
+};
diff --git a/ui/webpack.partial.dev.js b/ui/webpack.partial.dev.js
index d917ad8..1013515 100644
--- a/ui/webpack.partial.dev.js
+++ b/ui/webpack.partial.dev.js
@@ -15,7 +15,7 @@
  *   limitations under the License.
  */
 
-const merge = require('webpack-merge');
+const { merge } = require('webpack-merge');
 const baseConfig = require('./webpack.partial.base.js');
 
 module.exports = merge(baseConfig, {
@@ -55,4 +55,4 @@ module.exports = merge(baseConfig, {
             },
         },
     },
-});
\ No newline at end of file
+});
diff --git a/ui/webpack.partial.prod.js b/ui/webpack.partial.prod.js
index d4446e9..b224dde 100644
--- a/ui/webpack.partial.prod.js
+++ b/ui/webpack.partial.prod.js
@@ -16,11 +16,11 @@
  */
 
 const CompressionPlugin = require('compression-webpack-plugin');
-const merge = require('webpack-merge');
+const { merge } = require('webpack-merge');
 const baseConfig = require('./webpack.partial.base.js');
 
 module.exports = merge(baseConfig, {
     plugins: [
         new CompressionPlugin
     ],
-});
\ No newline at end of file
+});