New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sourcemap to Vue SFC doesn't work on first load #130
Labels
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
Comments
7 tasks
sapphi-red
added
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
and removed
pending triage
labels
Mar 14, 2023
@sapphi-red Was this the correct repo to file it in? I wasn't sure if it should be filed here or in the main vite repo? |
Yes. It seems plugin-vue is generating a wrong source map. |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
When initially loading a page that contains Vue Single File Components which reference an external template
the sourcemap only sourcemaps the template on the first load. If I edit the file and thus let the HMR reload it the sourcemap then maps to the SFC as it should.
Initial load
After saving the file and triggering a reload with HMR.
Reproduction
https://github.com/richardsimko/vite-vue-sourcemap-issues
Steps to reproduce
yarn install
andyarn run dev
to start the server.HelloWorld.vue
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: