Skip to content

Commit

Permalink
Fix: Fixes a warning in utils-worker package for missing vm module
Browse files Browse the repository at this point in the history
Adding `vm-browserify` as part of the dependencies.
---
Close: #5750
  • Loading branch information
vidorteg authored Mar 18, 2024
1 parent 6ff7010 commit 8338856
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/utils-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"terser-webpack-plugin": "^5.3.6",
"typescript": "^4.5.5",
"util.promisify": "^1.1.1",
"vm-browserify": "1.1.2",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.1"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/utils-worker/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ module.exports = (env) => {
os: 'os-browserify',
path: 'path-browserify',
setImmediate: 'setimmediate',
stream: 'stream-browserify'
stream: 'stream-browserify',
vm: 'vm-browserify'
}
}
};
Expand Down
1 change: 1 addition & 0 deletions scripts/lint-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const ignoredDependencies = new Set([
'style-loader',
'typescript',
'typed-css-modules',
'vm-browserify',
'vsce',
'vscode-languageclient',
'web-ext',
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11580,6 +11580,11 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"

vm-browserify@1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==

vm2@^3.9.3:
version "3.9.19"
resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.19.tgz#be1e1d7a106122c6c492b4d51c2e8b93d3ed6a4a"
Expand Down

0 comments on commit 8338856

Please sign in to comment.