Skip to content

Commit

Permalink
Fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Jan 14, 2015
1 parent 5d98bf6 commit 013064d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function (options) {
// libsass gives us sources' paths relative to file;
// gulp-sourcemaps needs sources' paths relative to file.base;
// so alter the sources' paths to please gulp-sourcemaps.
obj.map = obj.map.version ? obj.map : JSON.parse(sourceMap);
obj.map = obj.map.version ? obj.map : JSON.parse(obj.map);
obj.map.sources = obj.map.sources.map(function(source) {
var abs = path.resolve(path.dirname(file.path), source);
return path.relative(file.base, abs);
Expand Down

0 comments on commit 013064d

Please sign in to comment.