rules_swc icon indicating copy to clipboard operation
rules_swc copied to clipboard

[FR]: Support mirroring version provided by package.json

Open Aghassi opened this issue 1 year ago • 0 comments

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

Aghassi avatar Dec 05 '22 18:12 Aghassi