Experiment: node-sea
#40
Replies: 3 comments 1 reply
-
Amazing stuff @arcanis ! I'm making a note to take a deeper look into it soon. How are you embedding the generated JS code into the binary? |
Beta Was this translation helpful? Give feedback.
-
Also, let me convert this issue into a GitHub Discussion on the "Show and Tell" category! |
Beta Was this translation helpful? Give feedback.
-
@arcanis How would you feel about sending a PR to this repo including a document (maybe inside an I tried to do this myself while going through the Once the document is in place, we should add it to a future meeting agenda to discuss the results of the experiment and see what conclusions and decisions we can draw out of it. |
Beta Was this translation helpful? Give feedback.
-
Since the action item of the previous meeting was to build SEA experiments, I built mine: node-sea.
It generates JS files that, when required or executed from the CLI, either re-export a module or run a binary. It uses the Yarn libraries in order to generate the dataset that can be stored, and applied at runtime as a layer on top of the filesystem.
Note that you'll currently need to build the
node
binary from sources (nodejs/node#44537 is required), and some binaries such as Webpack will require nodejs/node#44732 for workers to be supported.Beta Was this translation helpful? Give feedback.
All reactions