-
Notifications
You must be signed in to change notification settings - Fork 31.3k
Node SEA ESM support #53565
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Now I have to use a .cjs wrapper, and dynamic import my .mjs app entry, which is ugly. |
according to lib/internal/util/embedding.js#L19 |
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-stale
|
Still ongoing. |
What is the problem this feature will solve?
Nodejs version 20.15.0,
I have a .mjs file, use
node --experimental-sea-config sea-config.json
pack as a blob,and then
npx postject hello NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
successful,but ./hello will throw
Require a ESM error
.So, packing ESM module into SEA single executable is not available now.
What is the feature you are proposing to solve the problem?
Packing ESM module as a single exeutable.
What alternatives have you considered?
Another feature request is: bake v8 options into executable to run with them on, like pkg's
--options
argumentThe text was updated successfully, but these errors were encountered: