Skip to content

Commit

Permalink
fix: souceMap problem, Close #43
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Feb 19, 2018
1 parent dfd71ac commit 1351939
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/af-webpack/src/debugLoader.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -13,5 +12,5 @@ export default function (source) {
console.log('');
console.log('');
}
this.callback(null, source);
this.callback(null, source, map);
}

0 comments on commit 1351939

Please sign in to comment.