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
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.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
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: