We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8084066 commit 9868b4dCopy full SHA for 9868b4d
crates/swc_ecma_preset_env/benches/polyfills.rs
@@ -81,6 +81,18 @@ fn bench_cases(c: &mut Criterion) {
81
82
run(b, SOURCE, Default::default())
83
});
84
+
85
+ c.bench_function("es/preset-env/entry/import", |b| {
86
+ const SOURCE: &str = r#"
87
+ import {} from "aaa.js";
88
+ "#;
89
90
+ let config = Config {
91
+ mode: Some(swc_ecma_preset_env::Mode::Entry),
92
+ ..Default::default()
93
+ };
94
+ run(b, SOURCE, config)
95
+ });
96
}
97
98
criterion_group!(benches, bench_cases);
0 commit comments