Skip to content

Commit

Permalink
Add support for inline sourcemaps (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
zinserjan authored and richardscarrott committed Mar 15, 2017
1 parent 6dc234a commit 958d897
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.js
Expand Up @@ -58,12 +58,9 @@ function installSourceMapSupport(fs) {
// lands we can be less aggressive and explicitly invalidate the source
// map cache when Webpack recompiles.
emptyCacheBetweenOperations: true,
retrieveSourceMap(source) {
retrieveFile(source) {
try {
return {
url: source,
map: fs.readFileSync(`${source}.map`).toString()
};
return fs.readFileSync(source, 'utf8');
} catch(ex) {
// Doesn't exist
}
Expand Down

0 comments on commit 958d897

Please sign in to comment.