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

Performance History

Latest Results

fix(rstest): support mocking dynamic import() of external modules (#14247) * fix(rstest): support mocking dynamic import() of external modules A dynamic `import()` of a mocked external resolved to the real module: rspack mints a different external module id for the dynamic `import("X")` (`external import "X"`) than for the hoisted `rs.mock` (`external module "X"`), so the mock on the static id was missed. The rstest mock methods now append the clean request literal as a trailing argument, and external dynamic imports are routed through `__webpack_require__.rstest_dynamic_require(id, request)`, so the runtime can find the mock registered under that request. Internal modules don't split, so their codegen stays byte-identical (gated on `target_is_external`). The emitted call is guarded (`rstest_dynamic_require ? <shim> : <plain require>`) so a newer @rspack/core stays safe against an older @rstest/core runtime that predates the helper, falling back to plain `__webpack_require__` instead of throwing — decoupling release order. Refs web-infra-dev/rstest#1327, web-infra-dev/rstest#1328 * fix(rstest): use is_some_and to satisfy clippy::map_unwrap_or * refactor(rstest): reuse get_module_by_dependency_id and short-circuit external gate * docs(rstest): trim redundant comments, mark deletable compat with TODO(compat) * docs(rstest): clarify cross-repo ref and trim codegen comments
main
8 minutes ago
chore(deps): update patch npm dependencies
renovate/patch-npm-dependencies
8 minutes ago
perf: collect side effects candidates with states
codex/perf-side-effects-plugin
14 minutes ago
chore: stabilize codspeed mimalloc env
codex/mimalloc-codspeed-env
20 minutes ago
fix: clear assigned create require side effects
fy/port-create-require
27 minutes ago
perf: skip transient side effects artifact clone
codex/perf-side-effects-plugin
41 minutes ago
fix: tag assigned namespace create require
fy/port-create-require
47 minutes ago
fix: tag namespace create require aliases
fy/port-create-require
1 hour ago

Latest Branches

CodSpeed Performance Gauge
-5%
perf: reduce side effects plugin allocations#14312
53 minutes ago
97ee23d
codex/perf-side-effects-plugin
CodSpeed Performance Gauge
+2%
56 minutes ago
25baf9a
fy/port-create-require
CodSpeed Performance Gauge
-8%
2 hours ago
dba7020
circular-check-plugin
© 2026 CodSpeed Technology
Home Terms Privacy Docs