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

Performance History

Latest Results

fix: preserve createRequire().resolve with literal import.meta.url when requireResolve is disabled When `module.parser.javascript.requireResolve` is `false`, a created require's `.resolve(...)` is preserved to run at runtime instead of being rewritten to a module id. A created require that is used as a real require object — `.resolve(...)`, any other member (`r.main`, `r.resolve.paths(...)`, ...), or as a bare value (`helper(r)`, `export { r }`, ...) — is kept and rendered via rspack's injected `__rspack_createRequire` helper, so the literal `import.meta.url` resolves relative to the runtime output module and those accesses hit the real require (instead of a context-require / unsupported-member rewrite). A plain invoke `r("./x")` is still bundled and `r.cache` still maps to the module cache, so a created require used only that way is cleared to `undefined` — no dead `import.meta.url` leaks and CommonJS output stays valid. The keep/clear decision is deferred to `finish()`. Since literal `import.meta.url` is only valid in ESM output, an `Unsupported feature` warning is emitted when a kept `createRequire(import.meta.url)` would land in a CommonJS bundle.
fy/clever-sammet-433c80
1 minute ago
chore: release v2.1.0 (#14584) * Release 0.101.0 rspack@0.101.0 rspack_allocator@0.101.0 rspack_binding_api@0.101.0 rspack_binding_build@0.101.0 rspack_binding_builder@0.101.0 rspack_binding_builder_macros@0.101.0 rspack_browserslist@0.101.0 rspack_cacheable@0.101.0 rspack_cacheable_macros@0.101.0 rspack_collections@0.101.0 rspack_core@0.101.0 rspack_error@0.101.0 rspack_fs@0.101.0 rspack_hash@0.101.0 rspack_hook@0.101.0 rspack_ids@0.101.0 rspack_javascript_compiler@0.101.0 rspack_loader_lightningcss@0.101.0 rspack_loader_preact_refresh@0.101.0 rspack_loader_react_refresh@0.101.0 rspack_loader_runner@0.101.0 rspack_loader_swc@0.101.0 rspack_loader_testing@0.101.0 rspack_location@0.101.0 rspack_macros@0.101.0 rspack_napi@0.101.0 rspack_napi_macros@0.101.0 rspack_parallel@0.101.0 rspack_paths@0.101.0 rspack_plugin_asset@0.101.0 rspack_plugin_banner@0.101.0 rspack_plugin_case_sensitive@0.101.0 rspack_plugin_circular_dependencies@0.101.0 rspack_plugin_copy@0.101.0 rspack_plugin_css@0.101.0 rspack_plugin_css_chunking@0.101.0 rspack_plugin_devtool@0.101.0 rspack_plugin_dll@0.101.0 rspack_plugin_dynamic_entry@0.101.0 rspack_plugin_ensure_chunk_conditions@0.101.0 rspack_plugin_entry@0.101.0 rspack_plugin_esm_library@0.101.0 rspack_plugin_externals@0.101.0 rspack_plugin_extract_css@0.101.0 rspack_plugin_hmr@0.101.0 rspack_plugin_html@0.101.0 rspack_plugin_ignore@0.101.0 rspack_plugin_javascript@0.101.0 rspack_plugin_json@0.101.0 rspack_plugin_lazy_compilation@0.101.0 rspack_plugin_library@0.101.0 rspack_plugin_lightning_css_minimizer@0.101.0 rspack_plugin_limit_chunk_count@0.101.0 rspack_plugin_merge_duplicate_chunks@0.101.0 rspack_plugin_mf@0.101.0 rspack_plugin_module_info_header@0.101.0 rspack_plugin_module_replacement@0.101.0 rspack_plugin_no_emit_on_errors@0.101.0 rspack_plugin_progress@0.101.0 rspack_plugin_real_content_hash@0.101.0 rspack_plugin_remove_duplicate_modules@0.101.0 rspack_plugin_remove_empty_chunks@0.101.0 rspack_plugin_rsc@0.101.0 rspack_plugin_rsdoctor@0.101.0 rspack_plugin_rslib@0.101.0 rspack_plugin_rstest@0.101.0 rspack_plugin_runtime@0.101.0 rspack_plugin_runtime_chunk@0.101.0 rspack_plugin_schemes@0.101.0 rspack_plugin_size_limits@0.101.0 rspack_plugin_split_chunks@0.101.0 rspack_plugin_sri@0.101.0 rspack_plugin_swc_js_minimizer@0.101.0 rspack_plugin_wasm@0.101.0 rspack_plugin_worker@0.101.0 rspack_regex@0.101.0 rspack_sources@0.101.0 rspack_storage@0.101.0 rspack_swc_plugin_import@0.101.0 rspack_swc_plugin_ts_collector@0.101.0 rspack_tasks@0.101.0 rspack_tracing@0.101.0 rspack_tracing_perfetto@0.101.0 rspack_util@0.101.0 rspack_watcher@0.101.0 rspack_workspace@0.101.0 Generated by cargo-workspaces * chore: release v2.1.0
main
17 minutes ago
fix rspack soruces bench
refactor-rspack-source-ache
3 hours ago
fix: cargo clippy
refactor-rspack-source-ache
3 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
fix: preserve createRequire().resolve with literal import.meta.url when requireResolve is disabled#14491
8 days ago
1ce3cff
fy/clever-sammet-433c80
CodSpeed Performance Gauge
+2%
perf: refactor rspack sources cache#14573
3 hours ago
f7dfa23
refactor-rspack-source-ache
CodSpeed Performance Gauge
0%
4 hours ago
700f03c
ci/sccache-tos-self-hosted
© 2026 CodSpeed Technology
Home Terms Privacy Docs