This uses the new StartExecutionCallbackWithModule embedder API to support ESM entrypoint in SEA via a new configuration field `"mainFormat"`. The behavior currently aligns with the embedder API and is mostly in sync with the CommonJS entry point behavior, except that support for code caching and snapshot is left for follow-ups. PR-URL: https://github.com/nodejs/node/pull/61813 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
6 lines
110 B
JSON
6 lines
110 B
JSON
{
|
|
"main": "sea.mjs",
|
|
"output": "sea",
|
|
"mainFormat": "module",
|
|
"disableExperimentalSEAWarning": true
|
|
}
|