Skip to content
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

Don't pass invalid NODE_OPTIONS to worker #44

Merged
merged 2 commits into from Apr 17, 2024

Conversation

donovanglover
Copy link
Contributor

This was causing downstream projects like prettier-synchronized to break when encountering V8 options like --max-old-space-size.

The option itself shouldn't be needed since execArgv values are inherited from the parent thread by default.

See: https://nodejs.org/api/worker_threads.html#new-workerfilename-options

Related: webpack/webpack#14859

This was causing downstream projects like prettier-synchronized to break
when encountering V8 options like `--max-old-space-size`.

The option itself shouldn't be needed since execArgv values are
inherited from the parent thread by default.

See: https://nodejs.org/api/worker_threads.html#new-workerfilename-options

Related: webpack/webpack#14859
@fisker
Copy link
Owner

fisker commented Apr 15, 2024

Thank you for fixing this, I'll merge and release later.

@fisker fisker merged commit 4465bd2 into fisker:main Apr 17, 2024
8 checks passed
@fisker fisker changed the title fix(worker): Don't parse invalid NODE_OPTIONS Don't pass invalid NODE_OPTIONS to worker Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants