rules_webpack icon indicating copy to clipboard operation
rules_webpack copied to clipboard

[Bug]: Requirement that entry_point is below does not work when entry_point is in node_modules package

Open twheys opened this issue 1 year ago • 0 comments

What happened?

My build has a production optimization step that uses webpack to bundle some node_modules packages. We use the webpack_bundle rule to do this, but in the latest version, 0.12.0, a validation error is raised preventing this, which requires that the entrypoint is relative to the build package.

Error in fail: Path 'node_modules/.aspect_rules_js/[email protected]/node_modules/styletron-client' is not beneath 'horizon'

I understand the motivation for the validation step but perhaps an exception can be made for node_modules/.aspect_rules_js

Version

rules_webpack 0.12.0

How to reproduce

No response

Any other information?

No response

twheys avatar Jul 21 '23 09:07 twheys