Avatar for the web-infra-dev user
web-infra-dev
rspack
BlogDocsChangelog

fix(javascript): prevent import.meta.url replacement in web target

#12266
Comparing
MIreland:fix/import-meta-url-web
(
2dceafe
) with
main
(
5041023
)
CodSpeed Performance Gauge
0%
Untouched
14
Archived
3

Benchmarks

17 total
bundle@threejs-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
+2%
771.4 ms759.9 ms
rust@build_chunk_graph
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
CodSpeed Performance Gauge
+1%
117.4 ms115.8 ms
js@Traverse compilation.modules
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
65.6 µs64.7 µs
js@record module
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
1.9 ms1.9 ms
bundle@threejs-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
+1%
2.1 s2.1 s
js@stats.toJson()
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
24.3 ms24.1 ms
js@record chunk group
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
+1%
77.9 µs77.4 µs
js@external getResolve
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
bundle@basic-react-production-sourcemap
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
725 ms725.5 ms
bundle@basic-react-development
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
CodSpeed Performance Gauge
0%
373 ms374.1 ms
js@Traverse module graph by connections
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
258.2 µs259.2 µs
js@Traverse module graph by dependencies
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
0%
514.9 µs517 µs
js@collect imported identifiers
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
-1%
208.2 µs209.5 µs
js@is css mod
tests/bench/ts-react.bench.ts::TypeScript React project
CodSpeed Performance Gauge
-1%
87.1 µs88.3 µs
rust@build_chunk_graph_parallel
xtask/benchmark/benches/groups/build_chunk_graph.rs::chunk_graph::build_chunk_graph_benchmark
Archived
CodSpeed Performance Gauge
+3%
105 ms102.3 ms
bundle@basic-react-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Archived
CodSpeed Performance Gauge
0%
570.7 ms569.5 ms
bundle@threejs-production
xtask/benchmark/benches/groups/bundle.rs::bundle::bundle_benchmark::bundle
Archived
CodSpeed Performance Gauge
+1%
1.6 s1.6 s

Commits

Click on a commit to change the comparison range
Base
main
5041023
+0.61%
fix: check if module is ES module before using import.meta.url
396aa66
5 months ago
by MIreland
+0.07%
fix(javascript): preserve import.meta.url in destructuring for web targets
54b40cf
5 months ago
by MIreland
-0.22%
fix(test): update import-meta-url-web test to work with ES module output
2dceafe
5 months ago
by MIreland
© 2026 CodSpeed Technology
Home Terms Privacy Docs