fix(vite): source mapping locations (#3624)

Mappings were wrong for a few reasons:
- Missing source map generation in one babel transform
- setting `compact: false` causes vite to generate incorrect mappings in
`vite:import-analysis`
- stack traces need to be mapped by vite

Fixes https://github.com/denoland/fresh/issues/3609
This commit is contained in:
Marvin Hagemeister
2025-11-18 11:40:52 +01:00
committed by GitHub
parent 399dde767b
commit f5c0f16878
13 changed files with 81 additions and 7 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
{
"vendor": true,
"nodeModulesDir": "manual",
"workspace": [
"./packages/*",
@@ -8,7 +9,7 @@
"demo": "deno task --cwd=packages/plugin-vite demo",
"demo:build": "deno task --cwd=packages/plugin-vite demo:build",
"demo:start": "deno task --cwd=packages/plugin-vite demo:start",
"test": "deno test -A --parallel",
"test": "deno test -A",
"www": "deno task --cwd=www dev",
"build-www": "deno task --cwd=www build",
"screenshot": "deno run -A www/utils/screenshot.ts",