-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Add SEA config to node.config.json
#57303
Comments
I think we can have both? Though it starts to get weird when the built SEA also reads from this config file for command line options, and also weird if it doesn't. The SEA config is not a runtime config and is not supposed to be in NODE_OPTIONS either. I think a more natural solution would be the other way around, to allow the CLI options to be nested into the sea config file in the format of node config (to be used when the SEA starts), instead of nesting SEA config into node config and now there is the question of when is this config used. |
We could add a namespace for sea, which is different from the |
|
The current state of having a separate config file for SEAs seems fine because there doesn't seem to be any obvious problems in terms of maintenance or usage. If we add the |
Im talking about this: { "main": "/path/to/bundled/script.js",
"output": "/path/to/write/the/generated/blob.blob",
"disableExperimentalSEAWarning": true,
"useSnapshot": false,
"useCodeCache": true,
"assets": { "a.dat": "/path/to/a.dat",
"b.txt": "/path/to/b.txt" }
} not sea flags Being able to put this config in the |
I would prefer that we keep |
I'm fine with being able to keep the two separate. {
"sea": {
"main": "/path/to/bundled/script.js",
"output": "/path/to/write/the/generated/blob.blob",
"disableExperimentalSEAWarning": true,
"useSnapshot": false,
"useCodeCache": true,
"assets": {
"a.dat": "/path/to/a.dat",
"b.txt": "/path/to/b.txt"
}
}
} How do we deal when the config is in both? Which wins? |
In terms of the SEA build config, I think being loaded by default can be weird, what would the work flow look like for this to be loaded by default?
I don't think the sequence is more readable than a more explicit
|
IMO the least confusing thing to do is to just not mix SEA config into the node config. Just keep things as is and add a new |
Agreed. For now, I think we should keep the SEA config separate. Let's see how the |
What is the problem this feature will solve?
--experimental-sea-config
requires yet another config file, I think this can be added as namespace in thenode.config.json
rather than into another file.What is the feature you are proposing to solve the problem?
We could merge the content of
--experimental-sea-config
into--experimental-config-file
and add a new namespace in the JSON calledsea
.What alternatives have you considered?
keep another config file
cc @RaisinTen @joyeecheung
The text was updated successfully, but these errors were encountered: