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

enable static specification of node-options #949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pipobscure
Copy link

@pipobscure pipobscure commented Dec 19, 2021

What this PR does / why we need it:

This is intended to implement passing compile-time NODE_OPTIONS to node. I am using this to pass --experimental-vm-modules --no-warnings to a project of mine.

Which issue(s) this PR fixes:

Fixes #616

Special notes for your reviewer:

At this point I just want to know whether this is the right approach in your eyes. If it is, I'll go through and clean this up and make sure it works against a set of node-versions of your choice. Right now I did this against node 17.3.0 and haven't validated against any other version.

@pipobscure pipobscure force-pushed the nodeopts branch 7 times, most recently from 4204a1b to f161e73 Compare December 19, 2021 03:43
@wilmardo
Copy link
Contributor

wilmardo commented Sep 26, 2023

Can't you just pass these in with --configure already?

Something like this:
https://github.com/LANsible/docker-nexe/blob/main/Dockerfile#L42C1-L42C82

Edit: don't know if this is the case but there still could be a usecase for runtime variables which don't require recompiling Node

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.

Support For Prebaked NODE_OPTIONS defaults?
2 participants