Skip to content

Allow for slim node builds #51928

Open
Open
@samardzicneo

Description

What is the problem this feature will solve?

When building Nodejs as a static library, it might be pointless to include all core modules in the resulting binary.
Modules such as crypto, http, http2, http3, https, tls, tcp, udp, etc. all increase the binary size but might not be ever used.

What is the feature you are proposing to solve the problem?

Add build-time flags to enable or disable core modules.

What alternatives have you considered?

Just shipping the fat libnode dylib works fine but it's 90MB+ and that could be cut down pretty far by skipping unused core modules.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions