Skip to content

Commit

Permalink
Add constants-browserify to webpack fallback
Browse files Browse the repository at this point in the history
required with latest version of Kaoto UI

fixes #133

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Feb 20, 2023
1 parent 703a254 commit f11bc7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,11 @@ [email protected]:
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"
Expand Down

0 comments on commit f11bc7b

Please sign in to comment.