Open vitrilo opened 8 years ago
+1 I am noticing a similar issue I think. The source maps do work in the browser but they only contain sources for the bundle entry file. In my case main.js, not any of the required/sourced files.
In my case source maps are ready before the gulp task is running, so those files are already on disk when task is running.
I was digging in for a quite long time and found what caused problem in my situation - I had multiple //# sourceMappingURL=
in my source file.
Example from the doc dont work, it produce broken map file:
Below example from doc AS-IS:
Most likelly sourcemaps.init tried to load .map file which was not yet writen on disk, plus it don't get if from pipe, as result - writen map file content is default (just copy of existing js file with no mapping info).
Workarond: do not use pipes - in that case it work as supposed: