diff --git a/index.js b/index.js index 0a73010..f101dd2 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,6 @@ var extend = require('xtend'); var minimatch = require('minimatch'); var convert = require('convert-source-map'); var sourceMapSupport = require('source-map-support'); -var originalRetrieveSourceMap = sourceMapSupport.retrieveSourceMap; var espowerSourceToSource = require('espower-source'); var pathToMap = {}; @@ -29,10 +28,11 @@ function espowerLoader (options) { retrieveSourceMap: function (source) { if (minimatch(source, pattern) && pathToMap[source]) { return { - map: pathToMap[source] + map: pathToMap[source], + url: source, }; } - return originalRetrieveSourceMap(source); + return null; } }); var espowerOptions = extend({ sourceRoot: options.cwd }, options.espowerOptions); diff --git a/package.json b/package.json index 850605d..ba38f29 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "convert-source-map": "^1.1.0", "espower-source": "^2.0.0", "minimatch": "^3.0.0", - "source-map-support": "^0.3.0", + "source-map-support": "^0.4.0", "xtend": "^4.0.0" }, "devDependencies": {