Latest Results
perf(hmr): remove no-op `runtime.__toCommonJS` call (#5089)
`__rolldown_runtime__.__toCommonJS(namespace);` was generated in the HMR
code. But this call is no-op (the return value is not used).
```js
var __toCommonJS = mod => __copyProps(__defProp({}, '__esModule', { value: true }), mod)
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === 'object' || typeof from === 'function')
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
key = keys[i]
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: (k => from[k]).bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
}
return to
}
var __defProp = Object.defineProperty
```
Also this call is slow because it copies all properties.
This seems to be added by https://github.com/rolldown/rolldown/pull/4461
but I'm not sure why this was added. Active Branches
#50940%
#50930%
#50680%
Ā© 2025 CodSpeed Technology