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

Support sourcemaps #14

Closed
call-a3 opened this issue Jan 19, 2016 · 2 comments
Closed

Support sourcemaps #14

call-a3 opened this issue Jan 19, 2016 · 2 comments
Assignees

Comments

@call-a3
Copy link

call-a3 commented Jan 19, 2016

Title speaks for itself I think. There are two possible scenario's:

  • the loaded JSON was native JSON (without a sourcemap provided), which should result in a sourcemap that maps the JSON object in the outputted code to the original file
  • the loaded JSON was the result of another pre-processing step (with an accompanying sourcemap), which should result in a new sourcemap that maintains the mappings of the previous sourcemaps, but combined with the wrapper code of this loader.
@SpaceK33z
Copy link
Contributor

PR welcome.

@michael-ciniawsky
Copy link
Member

Since webpack >= v2.0.0 supports JSON natively now this should be fixed :)

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

4 participants