Skip to content

build: enable loading builtin modules at runtime #36215

Closed
@RaisinTen

Description

Is your feature request related to a problem? Please describe.
It might be a problem to build node entirely every time the path to the node builtin modules is changed.

Describe the solution you'd like

  • During the configuration stage, instead of using --node-builtin-modules-path with a path value, we can use an --enable-runtime-node-builtin-modules flag to enable this feature.
  • At runtime, the path to the builtin modules can be read in from an environment variable NODE_BUILTIN_MODULES_PATH using libuv OR it can be passed to node as a command line argument using --node-builtin-modules-path with a path value.

Fixes: nodejs/help#3087
Ref: #31321

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

    buildIssues and PRs related to build files or the CI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions