Open l00k opened 5 years ago
Really? No one is using this?
If you remove attribute lang="scss" full source of vue file will be presented, but still without option to edit file (via filesystem mount)
I'm able to edit file after removing lang="scss"
, though.
@sodatea For me is available to edit if I use suggested solution from here: https://github.com/vuejs/vue-cli/issues/2978#issuecomment-452436539 but of course I lose possibility to use SCSS :(
EDIT: It is not related to Vue CLI itself. I found that in simple webpack project it also works like that. Maybe it is rather related to vue-loader ?
As I wrote at SO https://stackoverflow.com/questions/56127998/vue-cli-sourcemaps-to-style-part-of-vue-component-file/57228676#57228676
I have found something.. whole problem is not about Vue CLI but it is something with vue-loader-plugin IMO. I think so because while using clean setup with vue and webpack I also see that problem.
I have found out that it is related to wrong sourcemap generated for those parts of Vue file
Version
3.7.0
Reproduction link
https://github.com/l00k/vue-sample
Environment info
Steps to reproduce
vue.config.js
(to enable sourcemaps)npm run serve
What is expected?
Sourcemap should point to full file component with edit available (as filesystem mount done)
What is actually happening?
Source tab presents only few lines with SCSS code (only style tag content). Edit is not available.
If you remove attribute
lang="scss"
full source of vue file will be presented, but still without option to edit file (via filesystem mount) I also created question with bounty on SO https://stackoverflow.com/questions/56127998/vue-cli-sourcemaps-to-style-part-of-vue-component-file