From 958d8975cc9646ad1fff4c598fb4f5b0e9ec60e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Andr=C3=A9=20Zinser?= Date: Thu, 16 Mar 2017 00:00:56 +0100 Subject: [PATCH] Add support for inline sourcemaps (#15) --- src/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index 365071e..6159d1f 100644 --- a/src/index.js +++ b/src/index.js @@ -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 }