Skip to content

feat(webpack): null runtime#1804

Merged
naugtur merged 2 commits into
mainfrom
naugtur/null-runtime2
Sep 16, 2025
Merged

feat(webpack): null runtime#1804
naugtur merged 2 commits into
mainfrom
naugtur/null-runtime2

Conversation

@naugtur

@naugtur naugtur commented Sep 11, 2025

Copy link
Copy Markdown
Member

Opens the door to having a part of the webpack project not covered at all by specifying:

  • a layer that uses exclude loader
  • an entry with the layer
  • a null runtime

This is part of the experimental runtime hook thing, but I have an idea how to make it really simple to configure brewing.

@naugtur naugtur requested a review from boneskull as a code owner September 11, 2025 09:24
@github-actions github-actions Bot added the pkg:@lavamoat/webpack Changes in package @lavamoat/webpack label Sep 11, 2025

@boneskull boneskull left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could use a test imo

@github-actions github-actions Bot added the documentation Docs, examples, tutorials, and associated tooling label Sep 16, 2025
@naugtur

naugtur commented Sep 16, 2025

Copy link
Copy Markdown
Member Author

Added a check to fail compilation if someone accidentally set up the whole project to use null runtime and exclude.

@naugtur naugtur force-pushed the naugtur/null-runtime2 branch from c489545 to 7b91ab8 Compare September 16, 2025 12:38
@naugtur naugtur merged commit f12985f into main Sep 16, 2025
15 checks passed
@naugtur naugtur deleted the naugtur/null-runtime2 branch September 16, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs, examples, tutorials, and associated tooling pkg:@lavamoat/webpack Changes in package @lavamoat/webpack

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants