Skip to content

Commit 2b758e8

Browse files
refactor: remove unnecessary map check
1 parent fe0b78e commit 2b758e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export default function loader(content, map, meta) {
5656
}
5757
}
5858

59-
// Some loaders (example `"postcss-loader": "1.x.x"`) always generates source map, we should remove it
60-
let prevMap = sourceMap && map ? map : null;
59+
let prevMap = map;
6160

6261
// Some loader emit source map as `{String}`
6362
if (sourceMap && typeof map === 'string') {

0 commit comments

Comments
 (0)