-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraalVM support? ReferenceError: global is not defined #46
Comments
How does graal have require but not node’s other globals? |
I'm not a specialist in js/require/webpack. GraalVM officially have several (or more?) options for JS execution:
|
Webpack 5 is broken, and doesn’t polyfill node globals by default. What you’ll want to do, instead of setting global to an empty object, is replace all instances of a global |
Thanks. I need some time to understand and apply your information to make further steps. |
We have to hack around this. Any update? Building web workers with Vite and |
@jbeuckm if vite won't polyfill it properly by default, then you'd have to either configure it to do so, or switch to a working bundler. |
@chrisdickinson please fix? |
Just a small feature request:
Add support for undefined
global
namespace, if js-runtime environment is not a browser and not a nodejs.TL;DR
Workaround
Full GraalVM backtrace
Mostly useless.
EXPAND BACKTRACES
The text was updated successfully, but these errors were encountered: