diff --git a/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/input.ts b/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/input.ts new file mode 100644 index 00000000000..e89a781f84d --- /dev/null +++ b/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/input.ts @@ -0,0 +1,4 @@ +export namespace TEST { + export const VAL1 = 'value1'; + export const VAL2 = `${VAL1}_value2`; +} \ No newline at end of file diff --git a/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/output.js b/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/output.js new file mode 100644 index 00000000000..822246674a8 --- /dev/null +++ b/crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/output.js @@ -0,0 +1,5 @@ +export var TEST; +(function(TEST1) { + var VAL1 = TEST1.VAL1 = "value1"; + var VAL2 = TEST1.VAL2 = `${VAL1}_value2`; +})(TEST || (TEST = {}));