From 1351939b2fd77fc87606c1ca937695f64522736e Mon Sep 17 00:00:00 2001 From: chencheng Date: Mon, 19 Feb 2018 11:16:38 +0800 Subject: [PATCH] fix: souceMap problem, Close #43 --- packages/af-webpack/src/debugLoader.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/af-webpack/src/debugLoader.js b/packages/af-webpack/src/debugLoader.js index 9702b011b402..4993b71c8850 100644 --- a/packages/af-webpack/src/debugLoader.js +++ b/packages/af-webpack/src/debugLoader.js @@ -1,5 +1,4 @@ - -export default function (source) { +export default function(source, map) { const { resourcePath } = this; const debugLoader = process.env.DEBUG_LOADER; if (debugLoader && resourcePath.indexOf(debugLoader) > -1) { @@ -13,5 +12,5 @@ export default function (source) { console.log(''); console.log(''); } - this.callback(null, source); + this.callback(null, source, map); }