forked from gulp-sourcemaps/gulp-sourcemaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc56a13
commit 8a4ecd9
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a4ecd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to pass in an empty string for sourceRoot. In Javascript "" (empty string) is falsy, so it was not getting set. I see this related fork svsool@69e64f9 from @svsool. However, I'm confused about what the right thing to do is without more tests.
8a4ecd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8a4ecd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This small Javascript bug is definitely worth tackling to unleash the power of CoffeeScript.
8a4ecd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting
sourceRoot
to an empty string is the same as not setting thesourceRoot
property at all in the source map (it's no mandatory field).