rules_swc
rules_swc copied to clipboard
[FR]: Support mirroring version provided by package.json
What is the current behavior?
Currently SWC has an "allowed versions" list. This means if we specify a version not in https://github.com/aspect-build/rules_swc/blob/v0.19.3/swc/private/versions.bzl, we fail. This can be confusing to end users who may need to keep SWC version mirrored with a package.json.
Describe the feature
It would be nice if this mirrored the functionality that rules_ts
has that let's you specify a version from a target package.json. this way, when a project updates SWC, this gets that version and doesn't lockdown the allowed versions.
Fund our work
- [ ] Sponsor our open source work by donating a feature bounty