aspect-build / rules_swc

Bazel rules for the swc toolchain https://swc.rs/
https://docs.aspect.build/rules/aspect_rules_swc
Apache License 2.0
44 stars 24 forks source link

fix: Sourcemap links are not generated #154

Closed realtimetodie closed 1 year ago

realtimetodie commented 1 year ago

Fixes an issue where the sourceMappingURL comment was not added to the output.

Fixes https://github.com/aspect-build/rules_swc/issues/146

realtimetodie commented 1 year ago

I fixed another issue. The .swrc configuration file auto-discovery did not work properly, as the value needs to be of type label.

https://github.com/aspect-build/rules_swc/blob/518797f39f4cafb53fdca4c08e139724ceab1cc9/swc/defs.bzl#L73

realtimetodie commented 1 year ago

With regard to the source map test cases, everything works now as it did previously, except https://github.com/swc-project/swc/issues/1388 which is something I found while going through the @swc/cli source code.

realtimetodie commented 1 year ago

@alexeagle