From f11bc7b4465974e2a0219003bf0cbeb4b6f23ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 20 Feb 2023 15:52:15 +0100 Subject: [PATCH] Add constants-browserify to webpack fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit required with latest version of Kaoto UI fixes #133 Signed-off-by: Aurélien Pupier --- package.json | 1 + webpack.config.js | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/package.json b/package.json index 67737e45..a8d3c6f8 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "@vscode/test-web": "^0.0.32", "buffer": "^6.0.3", "chai": "^4.3.7", + "constants-browserify": "^1.0.0", "css-loader": "^6.7.1", "file-loader": "^6.2.0", "mocha": "^10.1.0", diff --git a/webpack.config.js b/webpack.config.js index b185c174..f0c8337a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -108,6 +108,7 @@ const commonConfig = (env) => { resolve: { // Required for github.dev and `minimatch` as Webpack 5 doesn't add polyfills automatically anymore. fallback: { + constants: require.resolve("constants-browserify"), path: require.resolve("path-browserify"), os: require.resolve("os-browserify/browser"), fs: false, diff --git a/yarn.lock b/yarn.lock index 54f2aea8..80f7dd28 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1553,6 +1553,11 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + integrity sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ== + content-disposition@~0.5.2: version "0.5.4" resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz"