-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug] Crash when spawning an ES module worker_thread #906
Labels
Comments
This issue reproduces on master:
|
Tracked in #638 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
Yarn 2 crashes when loading a worker file written as ES module.
To Reproduce
Environment if relevant (please complete the following information):
Additional context
Node.js can load script workers as well as ES modules workers (although ESM is still experimental at time of writing). It uses the same resolution algorithm as non-worker file to pick EMS loader or CJS loader. To qualify as ESM, a file is either:
.mjs
as extension..js
as extension and the closestpackage.json
containstype=module
.The text was updated successfully, but these errors were encountered: