Skip to content

Conversation

@ZephireNZ
Copy link

@ZephireNZ ZephireNZ commented Sep 6, 2025

Summary

Adds a flag BP_NODE_LAUNCH_REQUIRES_MODULES to disable the launch dependncy on node_modules layer, which is not required for bundled applications (eg Nuxt).

Fixes #736

Use Cases

Enables significant reduction in ouput image size, in conjunction with paketo-buildpacks/source-removal.

Example from app I was working on - 493MB down to just 20MB by removing the workspace node_modules folder.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@ZephireNZ ZephireNZ requested a review from a team as a code owner September 6, 2025 00:51
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 6, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to remove dependency on node_modules at runtime

1 participant