Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get source-map to work #1021

Closed
Ranjeet-Naidu opened this issue Mar 18, 2018 · 4 comments
Closed

Cant get source-map to work #1021

Ranjeet-Naidu opened this issue Mar 18, 2018 · 4 comments
Labels

Comments

@Ranjeet-Naidu
Copy link

Hi guys I can see a .map file being created on build but no mapping on chrome. Am I missing something?

Thanks

.babelrc

{
  "plugins": [
    "transform-runtime",
    "transform-es2015-destructuring",
    "transform-object-rest-spread",
    "syntax-dynamic-import"
  ],
  "presets": ["env"]
}

  "scripts": {
    "dev": "rm -rf .cache && rm -rf dist && parcel index.html"
  },
Software Version(s)
Parcel 1.6.2
Node 8.0.0
npm/Yarn 5.0.0
Operating System OSX
@DeMoorJasper
Copy link
Member

It's a known bug that sourcemaps don't support hot reloading, but they should work on normal browser refreshes and definitely on initial load, could u provide an example repo?

@Ranjeet-Naidu
Copy link
Author

Hi it doesn't seem to work on initial load or on a refresh. Code can be found here.
Thanks.

@Hammster
Copy link
Contributor

Hammster commented Mar 27, 2018

parcel-plugin-vue is the source of the issue (https://github.com/Ranjeet-Naidu/Spike-VueJS/blob/master/package.json#L36)

The extended JSPackager overrides the generation of the source map reference at the end of the file and also the extension is based on the outdated JSPackage which is why other things are missing too.

@DeMoorJasper
Copy link
Member

DeMoorJasper commented Mar 27, 2018

@Hammster Thanks for clearing this up :)
I'll close this as the issue should be moved to parcel-plugin-vue

If any of you would like to test out vue support with working sourcemaps, feel free to test the official Vue branch #1052

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

No branches or pull requests

4 participants