Skip to content

Commit b4fc1ea

Browse files
refactor: code
1 parent 76f1480 commit b4fc1ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default function loader(content, map, meta) {
3232
});
3333

3434
const callback = this.async();
35-
const sourceMap = options.sourceMap || false;
35+
const sourceMap =
36+
typeof options.sourceMap === 'boolean' ? options.sourceMap : this.sourceMap;
3637
const plugins = [];
3738

3839
if (shouldUseModulesPlugins(options.modules, this.resourcePath)) {

0 commit comments

Comments
 (0)