-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
004cb58
commit 809f7c6
Showing
35 changed files
with
86 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from "react"; | ||
export var Test; | ||
(function(Test) { | ||
var content = Test.content = /*#__PURE__*/ React.createElement("div", null, "Content"); | ||
Test.content = /*#__PURE__*/ React.createElement("div", null, "Content"); | ||
})(Test || (Test = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var A; | ||
(function(A) { | ||
var Foo = A.Foo = function() { | ||
A.Foo = function() { | ||
return /*#__PURE__*/ React.createElement("div", null); | ||
}; | ||
})(A || (A = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use strict"; | ||
var A; | ||
(function(A) { | ||
const v = A.v = 25; | ||
A.v = 25; | ||
function a() { | ||
console.log(v); | ||
console.log(A.v); | ||
} | ||
A.a = a; | ||
})(A || (A = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export var RuleInterpreterHelper; | ||
(function(RuleInterpreterHelper) { | ||
var fieldNameMap = RuleInterpreterHelper.fieldNameMap = []; | ||
var fieldNameHashMap = RuleInterpreterHelper.fieldNameHashMap = new Map(fieldNameMap); | ||
RuleInterpreterHelper.fieldNameMap = []; | ||
RuleInterpreterHelper.fieldNameHashMap = new Map(RuleInterpreterHelper.fieldNameMap); | ||
})(RuleInterpreterHelper || (RuleInterpreterHelper = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var n; | ||
(function(n) { | ||
var ref; | ||
var a = (ref = { | ||
ref = { | ||
a: 1 | ||
}, n.a = ref.a, ref).a; | ||
}, n.a = ref.a, ref; | ||
})(n || (n = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
var Foo; | ||
(function(Foo) { | ||
var ref; | ||
var _ref = (ref = { | ||
ref = { | ||
a: 1, | ||
b: 2 | ||
}, Foo.A = ref.a, Foo.B = ref.b, ref), A = _ref.a, B = _ref.b; | ||
}, Foo.A = ref.a, Foo.B = ref.b, ref; | ||
})(Foo || (Foo = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var foo; | ||
(function(foo) { | ||
var bar = foo.bar = 0; | ||
foo.bar = 0; | ||
})(foo || (foo = {})); | ||
export { foo }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,6 @@ define([ | |
} | ||
var Foo; | ||
(function(Foo) { | ||
const Bar = Foo.Bar = 1234; | ||
Foo.Bar = 1234; | ||
})(Foo || (Foo = {})); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
crates/swc_ecma_transforms_typescript/tests/fixture/issue-2669/1/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export var TEST; | ||
(function(TEST) { | ||
const VALUE = TEST.VALUE = "value"; | ||
TEST.VALUE = "value"; | ||
})(TEST || (TEST = {})); | ||
export default TEST; |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_transforms_typescript/tests/fixture/issue-2670/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export var TEST; | ||
(function(TEST) { | ||
const VAL1 = TEST.VAL1 = "value1"; | ||
const VAL2 = TEST.VAL2 = `${VAL1}_value2`; | ||
TEST.VAL1 = "value1"; | ||
TEST.VAL2 = `${TEST.VAL1}_value2`; | ||
})(TEST || (TEST = {})); |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_transforms_typescript/tests/fixture/issue-3073/1/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var Foo; | ||
(function(Foo) { | ||
const { a } = { a: Foo.a } = { | ||
({ a: Foo.a } = { | ||
a: 1 | ||
}; | ||
}); | ||
})(Foo || (Foo = {})); |
4 changes: 2 additions & 2 deletions
4
crates/swc_ecma_transforms_typescript/tests/fixture/issue-3073/2/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var Bar; | ||
(function(Bar) { | ||
const { a, b } = { a: Bar.a, b: Bar.b } = { | ||
({ a: Bar.a, b: Bar.b } = { | ||
a: 1, | ||
b: 2 | ||
}; | ||
}); | ||
})(Bar || (Bar = {})); |
2 changes: 1 addition & 1 deletion
2
crates/swc_ecma_transforms_typescript/tests/fixture/issue-3073/3/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var Baz; | ||
(function(Baz) { | ||
const baz = Baz.baz = { | ||
Baz.baz = { | ||
a: 1, | ||
b: 2 | ||
}; | ||
|
Oops, something went wrong.