-
Notifications
You must be signed in to change notification settings - Fork 130
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
Wrong reference in source map for files in subfolders #666
Comments
gulp-sourcemaps expects the paths to be relative to the base path of gulp:
I think the base path of I'm not sure what gulp-sourcemaps does with those paths in Anyway, this is another example why gulp is so difficult, with all those relative paths, relative to different paths. |
So I dig into it today and found the answer. Here's for those who will run into the same problem later on. TL;DR: I didn't set the Explanation:
Because Hence, to overcome it you need to pass This is why if If |
Great! So our behaviour is correct? Are all examples in the readme correct? We could indeed add some more explanation there to clarify this. |
Expected behavior:
Go up mutiple level in
sources
path of .map file depending on the location in subfolderActual behavior:
Same level for all
Your gulpfile:
Include your gulpfile, or only the related task (with
ts.createProject
).tsconfig.json
Include your tsconfig, if related to this issue.
Code
Include your TypeScript code, if necessary.
This might be related to #644, although I'm not sure
The text was updated successfully, but these errors were encountered: