Open wingland opened 6 years ago
Had the same issue,
the reason is that the JSPackager extension form parcel-plugin-vue
is outdated, and the sourcemap link is never added to the end of JS files. But even if this was fixed the sourcemap would point to the wrong lines in the original source. This should be fixed once parcel gains built in vue support.
Using this parcel-plugin-vue, I found the generated bundle file does not include the comment of sourceMappingURL in the end. Causing the browser unable to map to the source files.
I tried removing the parcel-plugin-vue, and did not import vue files, it works with the correct source map.
So I think it should be some issue with this plugin.
Here's my repo code that can reproduce this issue: Show a repo url: https://github.com/wingland/vue-ts-parcel-starter