Skip to content

Commit

Permalink
Fix: Fixing error Declaration emit for this file requires using priva…
Browse files Browse the repository at this point in the history
…te name 'Context' (#5752)

Fixing "...emit for this file requires using private name 'Context'", caused by the inclusion of VM polyfill. Switching it off instead.
  • Loading branch information
vidorteg authored Mar 20, 2024
1 parent 26d7247 commit 6ef9b7c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion packages/utils-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"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
2 changes: 1 addition & 1 deletion packages/utils-worker/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = (env) => {
path: 'path-browserify',
setImmediate: 'setimmediate',
stream: 'stream-browserify',
vm: 'vm-browserify'
vm: false
}
}
};
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11580,11 +11580,6 @@ [email protected]:
core-util-is "1.0.2"
extsprintf "^1.2.0"

[email protected]:
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 6ef9b7c

Please sign in to comment.