cssCodeSplit
with multiple entry points emits bogus sourcemap files
#14047
Labels
cssCodeSplit
with multiple entry points emits bogus sourcemap files
#14047
Describe the bug
When
cssCodeSplit
is enabled and multiple entry points with the same name but different file extension are present, vite generates invalid sourcemap files which refer nonexistant files and serve no purpose.Reproduction
https://github.com/silverwind/vite-empty-sourcemap
Steps to reproduce
git clone https://github.com/silverwind/vite-empty-sourcemap cd vite-empty-sourcemap npm install npx vite build ls -la dist
Expected
Actual
The sourcemap refers to a nonexistant file
index2.js
:System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: