Empty - dummy sourcemap generation of components with setup directive #447
Labels
bug: upstream
Bug in a dependency of this repository
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
Uh oh!
There was an error while loading. Please reload this page.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
I am using setup directive on SFCs which composes other components with module imports, and I generate builds with vite with sourcemaps enabled.
What I expect is to have sourcemaps generated for all the components I have in the project.
What happening is, vite ignores to generate sourcemaps for some components, depending on the content in the script tag with the
setup
directive. Inside the pages folder of the reproduction URL, there are various examples of single file components failing and succeeding generating sourcemaps.Reproduction
https://stackblitz.com/edit/vitejs-vite-1qo3gs?file=README.md&view=editor
Steps to reproduce
pnpm build
to generate the dist folder.pnpm test
to test the generated sourcemaps.SourcemapFails-xxx.js.map
files underdist/assets
folder manually.System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: