The [name]-legacy-[hash].js
file generated by [email protected] and @vitejs/plugin-legacy does not have a sourcemap
#11693
Labels
p4-important
Violate documented behavior or significantly improves performance (priority)
plugin: legacy
regression
The issue only appears after a new release
Describe the bug
[email protected]
could not generate a soucemap file for the[filename]-legacy-[hash].js
file generated by@vitejs/plugin-legacy
, but[email protected]
could successfully generate the corresponding sourcemap file.I'm not sure if it's
vite
or@vitejs/plugin-legacy
that's causing this problem.I've listed two links to reproduce it below. One uses
[email protected]
and the other uses[email protected]
. Both versions of@vitejs/plugin-legacy
are 3.0.1. They have the exact same configuration, and I didn't forget to addsourcemap: true
to the configuration file.Reproduction
https://stackblitz.com/edit/vitejs-v4-sourcemap-issue?file=package.json
Steps to reproduce
npm run build
dist/assets/
index-[hash].js
has a sourcemap file namedindex-[hash].js.map
. But there is no sourcemap file forindex-legacy-[hash].js
. (even though Vite lists its size in output for me)The sourcemap file corresponding to
index-legacy-[hash].js
in[email protected]
can be successfully generated. You can check the reproduction link located at https://stackblitz.com/edit/vitejs-v3-sourcemap-issue?file=package.jsonSystem Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: