You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #8258 you suggested that we compare with what tsc produces. As I understand it, typescript never attempts to re-write import/require statements. So the result is here
However another example that is closer aligned with what actually occurs in bazel reproduces the issue, essentially just another layer of symlinks: alexeagle/swc_8265_repro@16bfa92
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
This issue still exists with a more accurate bazel use case: #8265. See the latest change to reproduce it.
See jbedard@08db617 for a new test that should reproduce it, but I haven't finished the rust setup to actually compile+run this test yet.
Input code
Config
Playground link (or link to the minimal reproduction)
https://github.com/alexeagle/swc_8265_repro/
SWC Info output
swc-darwin-arm64 --version
SWC 0.91.64
Expected behavior
SWC 1.3.78 produces
In #8258 you suggested that we compare with what tsc produces. As I understand it, typescript never attempts to re-write import/require statements. So the result is here
https://github.com/aspect-build/rules_swc/pull/216/files#diff-e3a9eafb3b943b9863d6cea0b348d4ef40bc1b7bb5867a38ac889fcacea0cbf4R3
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA_1 = require("@modules/moduleA");
(0, moduleA_1.moduleA)();
Actual behavior
SWC 1.3.79 - 1.4.3+ produces:
Version
1.3.79
Additional context
See #8265
7dfdc12 fixed the original example in the original repo.
However another example that is closer aligned with what actually occurs in bazel reproduces the issue, essentially just another layer of symlinks: alexeagle/swc_8265_repro@16bfa92
The text was updated successfully, but these errors were encountered: