sea: support ESM entry point in SEA#61813
Open
joyeecheung wants to merge 1 commit intonodejs:mainfrom
Open
Conversation
Collaborator
|
Review requested:
|
joyeecheung
commented
Feb 13, 2026
| The `node:sea` builtin allows interaction with the single-executable application | ||
| from the JavaScript main script embedded into the executable. | ||
|
|
||
| #### `sea.isSea()` |
Member
Author
There was a problem hiding this comment.
Drive-by: fixed this since it seems out of touch with other APIs below.
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.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #61813 +/- ##
==========================================
+ Coverage 89.74% 89.76% +0.02%
==========================================
Files 675 675
Lines 204735 204775 +40
Branches 39348 39351 +3
==========================================
+ Hits 183737 183821 +84
+ Misses 13269 13225 -44
Partials 7729 7729
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This uses the new StartExecutionCallbackWithModule embedder API added in #61548 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.Note: for follow-ups: