vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.73k stars 6.21k forks source link

fix(optimizer): workaround firefox's false warning for no sources source map #18665

Closed hi-ogawa closed 3 days ago

hi-ogawa commented 1 week ago

Description

I reported the issue to esbuild https://github.com/evanw/esbuild/issues/3945, but Vite side workaround seems reasonably simple, so I made a PR here. Note that Rolldown doesn't create a source map for this case, so this won't be an issue with rolldown-based optimizer in the future.

How to verify

(there were already a warning from an existing test dependencies, but I added a probably simplest one to see it easily)