Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(es/utils): Use more unique names for aliases (#6399)
- Loading branch information
Showing
312 changed files
with
1,532 additions
and
1,519 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
crates/swc/tests/fixture/codegen/comment-1/es5/output/index.tsx
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,13 +1,13 @@ | ||
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; | ||
export var Class1 = function Class1(param) { | ||
"use strict"; | ||
var _name = param.name, name = _name === void 0 ? "" : _name; | ||
var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name; | ||
_class_call_check(this, Class1); | ||
console.log(name); | ||
}; | ||
export var Class2 = function Class2(param) { | ||
"use strict"; | ||
var _name = param.name, name = _name === void 0 ? "" : _name; | ||
var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name; | ||
_class_call_check(this, Class2); | ||
console.log(name); | ||
}; |
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/tests/fixture/issues-1xxx/pr-1524/comment-1/output/index.tsx
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,7 +1,7 @@ | ||
var _value, ref; | ||
var _myVar_target_value, _myVar_target_value_toLowerCase; | ||
var myVar = { | ||
target: { | ||
value: "ABC" | ||
} | ||
}; | ||
console.log((ref = (_value = myVar.target.value).toLowerCase) === null || ref === void 0 ? void 0 : ref.call(_value)); | ||
console.log((_myVar_target_value_toLowerCase = (_myVar_target_value = myVar.target.value).toLowerCase) === null || _myVar_target_value_toLowerCase === void 0 ? void 0 : _myVar_target_value_toLowerCase.call(_myVar_target_value)); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; | ||
var ref = _sliced_to_array(createQuery(), 2); | ||
export var useQuery = ref[0], query = ref[1].query; | ||
var ref1 = _sliced_to_array(createMutation(), 2); | ||
export var useMutation = ref1[0], mutate = ref1[1].mutate; | ||
var _createQuery = _sliced_to_array(createQuery(), 2); | ||
export var useQuery = _createQuery[0], query = _createQuery[1].query; | ||
var _createMutation = _sliced_to_array(createMutation(), 2); | ||
export var useMutation = _createMutation[0], mutate = _createMutation[1].mutate; |
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 @@ | ||
var ref = { | ||
var _ref = { | ||
a: 1, | ||
b: 2 | ||
}, a1 = ref.a, b1 = ref.b; | ||
var ref1 = { | ||
}, a1 = _ref.a, b1 = _ref.b; | ||
var _ref1 = { | ||
a: 1, | ||
b: 2 | ||
}; | ||
export var a2 = ref1.a, b2 = ref1.b; | ||
export var a2 = _ref1.a, b2 = _ref1.b; |
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.
574502a
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
342849
ns/iter (± 41711
)361939
ns/iter (± 22921
)0.95
es/full/minify/libraries/antd
1849686838
ns/iter (± 49179473
)1879049147
ns/iter (± 51778573
)0.98
es/full/minify/libraries/d3
423679509
ns/iter (± 23543023
)426887056
ns/iter (± 20217225
)0.99
es/full/minify/libraries/echarts
1550138874
ns/iter (± 69677661
)1628766252
ns/iter (± 64129017
)0.95
es/full/minify/libraries/jquery
101225832
ns/iter (± 1652205
)112470524
ns/iter (± 4836731
)0.90
es/full/minify/libraries/lodash
115895899
ns/iter (± 3760431
)122023835
ns/iter (± 3464950
)0.95
es/full/minify/libraries/moment
58812675
ns/iter (± 4418008
)62514744
ns/iter (± 2397199
)0.94
es/full/minify/libraries/react
19846156
ns/iter (± 428110
)28398882
ns/iter (± 3773869
)0.70
es/full/minify/libraries/terser
291308614
ns/iter (± 11540782
)320548862
ns/iter (± 15336117
)0.91
es/full/minify/libraries/three
537158095
ns/iter (± 5535730
)573034588
ns/iter (± 27757312
)0.94
es/full/minify/libraries/typescript
3297559709
ns/iter (± 27349424
)3414593614
ns/iter (± 103699721
)0.97
es/full/minify/libraries/victory
810724383
ns/iter (± 20774533
)809359567
ns/iter (± 20924197
)1.00
es/full/minify/libraries/vue
154261987
ns/iter (± 3503762
)150967955
ns/iter (± 8592983
)1.02
es/full/codegen/es3
32799
ns/iter (± 614
)33895
ns/iter (± 692
)0.97
es/full/codegen/es5
32861
ns/iter (± 896
)34523
ns/iter (± 1315
)0.95
es/full/codegen/es2015
32944
ns/iter (± 1024
)34616
ns/iter (± 1807
)0.95
es/full/codegen/es2016
33042
ns/iter (± 1493
)34252
ns/iter (± 841
)0.96
es/full/codegen/es2017
32856
ns/iter (± 493
)34931
ns/iter (± 1378
)0.94
es/full/codegen/es2018
32961
ns/iter (± 659
)34608
ns/iter (± 1568
)0.95
es/full/codegen/es2019
32829
ns/iter (± 833
)34578
ns/iter (± 1773
)0.95
es/full/codegen/es2020
32866
ns/iter (± 900
)34751
ns/iter (± 2853
)0.95
es/full/all/es3
189071197
ns/iter (± 11157902
)202913778
ns/iter (± 21095357
)0.93
es/full/all/es5
178319800
ns/iter (± 6482341
)191862860
ns/iter (± 14595776
)0.93
es/full/all/es2015
145170523
ns/iter (± 6618842
)152727360
ns/iter (± 27407229
)0.95
es/full/all/es2016
144029821
ns/iter (± 5628687
)149661576
ns/iter (± 12083063
)0.96
es/full/all/es2017
144696980
ns/iter (± 9172301
)153947292
ns/iter (± 15416343
)0.94
es/full/all/es2018
139067163
ns/iter (± 6894041
)144371346
ns/iter (± 9603016
)0.96
es/full/all/es2019
140477494
ns/iter (± 7344222
)150073870
ns/iter (± 10104309
)0.94
es/full/all/es2020
135078652
ns/iter (± 4366346
)147140016
ns/iter (± 10946679
)0.92
es/full/parser
714607
ns/iter (± 41380
)711098
ns/iter (± 34668
)1.00
es/full/base/fixer
26594
ns/iter (± 1643
)26760
ns/iter (± 1901
)0.99
es/full/base/resolver_and_hygiene
91512
ns/iter (± 4012
)94266
ns/iter (± 7924
)0.97
serialization of ast node
215
ns/iter (± 2
)218
ns/iter (± 9
)0.99
serialization of serde
211
ns/iter (± 3
)218
ns/iter (± 19
)0.97
This comment was automatically generated by workflow using github-action-benchmark.