Skip to content

Commit

Permalink
chore(package): update source-map-support to 0.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdwind committed Apr 8, 2017
1 parent f208fd4 commit 62a93c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 62a93c7

Please # to comment.