Skip to content
This repository has been archived by the owner on Jun 3, 2018. It is now read-only.

Source map does not work #37

Open
wingland opened this issue Mar 25, 2018 · 1 comment
Open

Source map does not work #37

wingland opened this issue Mar 25, 2018 · 1 comment

Comments

@wingland
Copy link

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
Copy link

Hammster commented Mar 27, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants