-
Notifications
You must be signed in to change notification settings - Fork 122
-
Notifications
You must be signed in to change notification settings - Fork 122
Source map paths are relative to baseURL
, instead of outPath
#58
Comments
Haven't look at that at all. Is this really a chaining issue though, perhaps I'm misunderstanding but sounds like the issue is with the vanilla traceur sourcemap or the input map (chaining should not generate any source names of its own) |
@crisptrutski did you manage to look into this? |
Took a quick look - those names are coming from Seems we might as well just yank the extension (if any) from the address and just plonk that on. 🐐 |
Thanks, I'm wondering if I had my test case wrong - it should pick up the original source names from the first source file if chaining source maps being the point. Would be nice to verify these are working correctly with some more test cases. Including if the original file was compiled from a few separate files into ES6, and then compiled into ES5, those first files should display as individual entries when debugging. |
Sure - will write specs for |
Thanks that would be great. |
basURL
, instead of outPath
basURL
, instead of outPath
baseURL
, instead of outPath
Hijacking this issue for key issue. Will keep "relative to baseURL" as behaviour for in-memory builds |
Perfect. |
The source map chaining in https://github.com/systemjs/builder/blob/master/compilers/es6.js#L59 seems to work correctly.
But I'm not sure why it isn't failing because the
sources
array contains module names likefile
instead offile.js
.Given this, how is Traceur knowing that the original file is
file.js
? Is it fromload.address
? That seems like the wrong assumption to be making?The text was updated successfully, but these errors were encountered: