-
-
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.
feat(swc_core): Expand features and use it from wasm and cli (#5369)
- Loading branch information
Showing
16 changed files
with
153 additions
and
90 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Validate conflict between host / plugin features | ||
#[cfg(all( | ||
feature = "plugin_transform", | ||
any( | ||
feature = "plugin_transform_host_native", | ||
feature = "plugin_transform_host_js" | ||
) | ||
))] | ||
compile_error!( | ||
"'plugin_transform' and 'plugin_transform_host*' features are mutually exclusive. If you're \ | ||
writing a plugin, use 'plugin_transform' feature. If you're writing a custom SWC binary to \ | ||
run plugin, use 'plugin_transform_host_*' instead." | ||
); | ||
|
||
fn main() { | ||
/* noop */ | ||
} |
Oops, something went wrong.
8b9dd6f
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/minify/libraries/antd
1675716868
ns/iter (± 56816192
)1740651081
ns/iter (± 86430952
)0.96
es/full/minify/libraries/d3
371820491
ns/iter (± 19030402
)408377303
ns/iter (± 11951247
)0.91
es/full/minify/libraries/echarts
1411517142
ns/iter (± 30997730
)1520390988
ns/iter (± 88223673
)0.93
es/full/minify/libraries/jquery
85750941
ns/iter (± 4603107
)121210350
ns/iter (± 21089364
)0.71
es/full/minify/libraries/lodash
109734611
ns/iter (± 5316429
)142478744
ns/iter (± 34322153
)0.77
es/full/minify/libraries/moment
51911500
ns/iter (± 1693512
)62076112
ns/iter (± 6201625
)0.84
es/full/minify/libraries/react
17493526
ns/iter (± 808346
)19613867
ns/iter (± 833381
)0.89
es/full/minify/libraries/terser
283552971
ns/iter (± 13528734
)319606930
ns/iter (± 3584724
)0.89
es/full/minify/libraries/three
539146452
ns/iter (± 45475469
)571240186
ns/iter (± 5821961
)0.94
es/full/minify/libraries/typescript
3652179576
ns/iter (± 417269986
)3651206518
ns/iter (± 175653258
)1.00
es/full/minify/libraries/victory
805867664
ns/iter (± 99565253
)799917911
ns/iter (± 73916310
)1.01
es/full/minify/libraries/vue
146595844
ns/iter (± 24013243
)162867512
ns/iter (± 16449844
)0.90
es/full/codegen/es3
35327
ns/iter (± 7777
)33524
ns/iter (± 1208
)1.05
es/full/codegen/es5
35479
ns/iter (± 5621
)33539
ns/iter (± 1293
)1.06
es/full/codegen/es2015
34357
ns/iter (± 4082
)33882
ns/iter (± 1489
)1.01
es/full/codegen/es2016
33860
ns/iter (± 1018
)33909
ns/iter (± 2681
)1.00
es/full/codegen/es2017
34253
ns/iter (± 1669
)34378
ns/iter (± 4149
)1.00
es/full/codegen/es2018
34061
ns/iter (± 1454
)34753
ns/iter (± 5292
)0.98
es/full/codegen/es2019
34308
ns/iter (± 1885
)34490
ns/iter (± 4269
)0.99
es/full/codegen/es2020
35511
ns/iter (± 5520
)36650
ns/iter (± 4143
)0.97
es/full/all/es3
198585742
ns/iter (± 21932660
)221141882
ns/iter (± 23828918
)0.90
es/full/all/es5
201144748
ns/iter (± 114246354
)206295278
ns/iter (± 18632360
)0.98
es/full/all/es2015
152072598
ns/iter (± 14482777
)168607742
ns/iter (± 17324665
)0.90
es/full/all/es2016
147693646
ns/iter (± 19681956
)165135079
ns/iter (± 14402921
)0.89
es/full/all/es2017
145157274
ns/iter (± 6938751
)165533677
ns/iter (± 16231745
)0.88
es/full/all/es2018
144334112
ns/iter (± 7035150
)162673808
ns/iter (± 22348641
)0.89
es/full/all/es2019
145999749
ns/iter (± 11111682
)145497126
ns/iter (± 14756129
)1.00
es/full/all/es2020
140029812
ns/iter (± 6664682
)161659906
ns/iter (± 26737176
)0.87
es/full/parser
746515
ns/iter (± 18108
)782111
ns/iter (± 76485
)0.95
es/full/base/fixer
29416
ns/iter (± 718
)30972
ns/iter (± 5642
)0.95
es/full/base/resolver_and_hygiene
87515
ns/iter (± 1933
)97772
ns/iter (± 13758
)0.90
serialization of ast node
214
ns/iter (± 3
)240
ns/iter (± 51
)0.89
serialization of serde
236
ns/iter (± 4
)249
ns/iter (± 23
)0.95
This comment was automatically generated by workflow using github-action-benchmark.