We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6185147 commit 27295acCopy full SHA for 27295ac
1 file changed
lib/NormalModule.js
@@ -39,6 +39,7 @@ NormalModule.prototype.readableIdentifier = function(requestShortener) {
39
40
NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderContext, options, compilation) {
41
loaderContext.webpack = true;
42
+ loaderContext.sourceMap = !!this.useSourceMap;
43
loaderContext.emitFile = function(name, content, sourceMap) {
44
if(typeof sourceMap === "string") {
45
this.assets[name] = new OriginalSource(content, sourceMap);
0 commit comments