BoltDoggy / parcel-plugin-vue

⚠️ parcel-bundler/parcel @1.7.0 support Vue Now. This plugin will be not recommended.
https://github.com/parcel-bundler/parcel
209 stars 15 forks source link

Source map does not work #37

Open wingland opened 6 years ago

wingland commented 6 years ago

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

Software Version(s)
parcel-plugin-vue 1.5.0
Parcel 1.6.2
Vue 2.5.16
Node 8.9.3
Yarn 1.3.2
Operating System Mac OSX
Hammster commented 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.