Closed jackvincentnz closed 1 month ago
build --modify_execution_info=SWCTranspile=+no-sandbox
doesn't seem to make this pass, as mentioned it might in https://github.com/swc-project/swc/issues/4057#issuecomment-1118001633
This will be fixed by #216 which was unblocked yesterday thanks to an upstream fix in SWC
Overview
I have been trying to figure out whether this issue is in SWC or
rules_swc
. For now I am going to leave this here since it is a simple reproduction of the issue I am seeing. For a more in depth reproduction of this working outside Bazel, please see: https://github.com/jackvincentnz/bazel-swc-paths-bug-repoMotivation
Type of change
Test plan
Summary
Sandbox paths are present in transpiled sources when the module being transformed is nested from the
baseUrl
configured in.swcrc
.E.g. we expected to see paths resolved to their relative paths:
But instead we see a sandbox path: