-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/typescript): Preserve default value of an exported binding in …
- Loading branch information
1 parent
d35de64
commit cf96171
Showing
37 changed files
with
138 additions
and
127 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
Oops, something went wrong.
cf96171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
276721
ns/iter (± 6210
)275102
ns/iter (± 2583
)1.01
es/full/minify/libraries/antd
1285832357
ns/iter (± 12153756
)1318521059
ns/iter (± 15535694
)0.98
es/full/minify/libraries/d3
270680100
ns/iter (± 3067727
)273599669
ns/iter (± 7159486
)0.99
es/full/minify/libraries/echarts
1034147287
ns/iter (± 4018881
)1045250218
ns/iter (± 9958916
)0.99
es/full/minify/libraries/jquery
83346969
ns/iter (± 109023
)83977148
ns/iter (± 329319
)0.99
es/full/minify/libraries/lodash
96544472
ns/iter (± 188095
)97436571
ns/iter (± 157526
)0.99
es/full/minify/libraries/moment
49280804
ns/iter (± 115809
)49720752
ns/iter (± 357443
)0.99
es/full/minify/libraries/react
17882682
ns/iter (± 80684
)18005136
ns/iter (± 92710
)0.99
es/full/minify/libraries/terser
214825610
ns/iter (± 1737310
)216751277
ns/iter (± 583051
)0.99
es/full/minify/libraries/three
380392231
ns/iter (± 1724691
)384344625
ns/iter (± 1901744
)0.99
es/full/minify/libraries/typescript
2581755264
ns/iter (± 18434478
)2645353468
ns/iter (± 10687292
)0.98
es/full/minify/libraries/victory
565202909
ns/iter (± 5042799
)567467876
ns/iter (± 4184440
)1.00
es/full/minify/libraries/vue
117959671
ns/iter (± 168678
)119417047
ns/iter (± 2683822
)0.99
es/full/codegen/es3
34115
ns/iter (± 139
)34329
ns/iter (± 141
)0.99
es/full/codegen/es5
33998
ns/iter (± 105
)34275
ns/iter (± 140
)0.99
es/full/codegen/es2015
34119
ns/iter (± 103
)34362
ns/iter (± 65
)0.99
es/full/codegen/es2016
34020
ns/iter (± 117
)34254
ns/iter (± 122
)0.99
es/full/codegen/es2017
33987
ns/iter (± 183
)34247
ns/iter (± 82
)0.99
es/full/codegen/es2018
34061
ns/iter (± 166
)34364
ns/iter (± 157
)0.99
es/full/codegen/es2019
33954
ns/iter (± 154
)34283
ns/iter (± 129
)0.99
es/full/codegen/es2020
34095
ns/iter (± 140
)34308
ns/iter (± 99
)0.99
es/full/all/es3
163536715
ns/iter (± 848902
)165651725
ns/iter (± 710876
)0.99
es/full/all/es5
156870098
ns/iter (± 1035393
)158321742
ns/iter (± 1141284
)0.99
es/full/all/es2015
116050191
ns/iter (± 650928
)118194302
ns/iter (± 1816704
)0.98
es/full/all/es2016
115686831
ns/iter (± 796787
)117275947
ns/iter (± 600779
)0.99
es/full/all/es2017
114922968
ns/iter (± 1153785
)115455982
ns/iter (± 681033
)1.00
es/full/all/es2018
113076497
ns/iter (± 699821
)113896739
ns/iter (± 519485
)0.99
es/full/all/es2019
112606016
ns/iter (± 785839
)113517013
ns/iter (± 1355946
)0.99
es/full/all/es2020
107782843
ns/iter (± 543518
)109968865
ns/iter (± 720229
)0.98
es/full/parser
482436
ns/iter (± 5552
)494442
ns/iter (± 4356
)0.98
es/full/base/fixer
17875
ns/iter (± 105
)21039
ns/iter (± 230
)0.85
es/full/base/resolver_and_hygiene
80623
ns/iter (± 421
)81898
ns/iter (± 115
)0.98
serialization of serde
284
ns/iter (± 3
)287
ns/iter (± 0
)0.99
This comment was automatically generated by workflow using github-action-benchmark.