mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
654d05ca29
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
17 lines
480 B
Diff
17 lines
480 B
Diff
--- old.downlevelLetConst13(target=es2015).js
|
|
+++ new.downlevelLetConst13(target=es2015).js
|
|
@@= skipped -26, +26 lines =@@
|
|
// exported let\const bindings should not be renamed
|
|
exports.foo = 10;
|
|
exports.bar = "123";
|
|
-exports.bar1 = [1][0];
|
|
-exports.bar2 = [2][0];
|
|
-exports.bar3 = { a: 1 }.a;
|
|
-exports.bar4 = { a: 1 }.a;
|
|
+[exports.bar1] = [1];
|
|
+[exports.bar2] = [2];
|
|
+({ a: exports.bar3 } = { a: 1 });
|
|
+({ a: exports.bar4 } = { a: 1 });
|
|
var M;
|
|
(function (M) {
|
|
M.baz = 100;
|