From 013064de26bb21f46b47c22a0c65467a4d5c6e4f Mon Sep 17 00:00:00 2001 From: xzyfer Date: Wed, 14 Jan 2015 15:30:21 +1100 Subject: [PATCH] Fix undefined variable --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6d6feba56..9ae4d674c 100644 --- a/index.js +++ b/index.js @@ -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);