Skip to content

Experiment: node-sea #39

@arcanis

Description

@arcanis

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.

npx node-sea -c 'npm add prettier' -b prettier -m prettier -o prettier
~/node/node ./prettier.cjs --help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions