Skip to content

Commit 28e9f4f

Browse files
Fix warning about polyfill for vm (stolostron#3509)
Signed-off-by: Kevin Cormier <kcormier@redhat.com>
1 parent db4dbec commit 28e9f4f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

frontend/package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@
224224
"type-fest": "2.16.0",
225225
"typescript": "^4.9.5",
226226
"v8-compile-cache": "2.3.0",
227+
"vm-browserify": "^1.1.2",
227228
"webpack": "^5.91.0",
228229
"webpack-bundle-analyzer": "4.5.0",
229230
"webpack-cli": "4.10.0",

frontend/webpack.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = function (env: any, argv: { hot?: boolean; mode: string | undef
3232
util: require.resolve('node-util'),
3333
crypto: require.resolve('crypto-browserify'),
3434
process: require.resolve('process/browser'),
35+
vm: require.resolve('vm-browserify'),
3536
},
3637
alias: {
3738
handlebars: 'handlebars/dist/handlebars.js',

0 commit comments

Comments
 (0)