From 4c2afc27e8eb4f095b623075a9900478e5268259 Mon Sep 17 00:00:00 2001 From: Donald Pipowitch Date: Tue, 6 Jun 2017 11:40:08 +0200 Subject: [PATCH] support source maps --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e6241bc..6ff7aaa 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ function processOptions(source, options) { return newSource; } -module.exports = function (source) { +module.exports = function (source, map) { this.cacheable(); var options = loaderUtils.getOptions(this); @@ -32,5 +32,5 @@ module.exports = function (source) { source = processOptions(source, options); } - return source; + this.callback(null, source, map); };