fix(browser): fix stale source map on watch mode by hi-ogawa · Pull Request #10389 · vitest-dev/vitest (original) (raw)

Description

Apparently #9721 introduced a bug. It added the cache for the case that wasn't cached before and that contradicts with the comment at the sourceMapCache:

// cache for non-vite source maps
private sourceMapCache = new Map<string, any>()

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

Documentation

Changesets