If your webpack config contains entry: {} being set, the rule will not override even if you pass entry_point. You need to pass args --entry-reset and then entry points you care about to do so. This also has the side effect of exposing that args doesn't interpolate and expand format strings. #144 was an attempt to fix this partially, but not a good one.
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
Language(s) and/or frameworks involved:
How to reproduce
Create a webpack config with `entry` set
Set a rule that overrides entry with `entry_point`
Bazel run or build that target and see the entry point is not overridden
Pass `args` to the rule that then sets `--entry-reset --entry=<file>` and see it work
What happened?
If your webpack config contains
entry: {}
being set, the rule will not override even if you passentry_point
. You need to pass args--entry-reset
and then entry points you care about to do so. This also has the side effect of exposing thatargs
doesn't interpolate and expandformat
strings. #144 was an attempt to fix this partially, but not a good one.https://webpack.js.org/api/cli/#entry
Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 6.4.0Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response