Skip to content

lib: allow CJS source map cache to be reclaimed

Unifies the CJS and ESM source map cache map and allows the CJS cache entries to be queried more efficiently with a source url without iteration on an IterableWeakMap. Reclaims the CJS cache entry with a FinalizationRegistry instead.

Add a regression test to verify that the CJS source map cache entry can be reclaimed.

Merge request reports

Loading