You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run yarn install and yarn run dev to start the server.
Load the site and open HelloWorld.vue in Chrome devtools
Observe that it's only the template
Make a change to HelloWorld.vue
Observe that the file now changes in devtools to reflect the contents of the SFC
What is expected?
When initially loading a page that contains Vue Single File Components which reference an external template
<template src="./HelloWorld-template.html" />
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.
Vue version
3.2.47
Link to minimal reproduction
https://github.com/richardsimko/vite-vue-sourcemap-issues
Steps to reproduce
yarn install
andyarn run dev
to start the server.HelloWorld.vue
What is expected?
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.
System Info
Any additional comments?
Vite debug log:
Click to expand!
The text was updated successfully, but these errors were encountered: