Skip to content

Commit 27295ac

Browse files
committed
expose sourceMaps flag to loaders
1 parent 6185147 commit 27295ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/NormalModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ NormalModule.prototype.readableIdentifier = function(requestShortener) {
3939

4040
NormalModule.prototype.fillLoaderContext = function fillLoaderContext(loaderContext, options, compilation) {
4141
loaderContext.webpack = true;
42+
loaderContext.sourceMap = !!this.useSourceMap;
4243
loaderContext.emitFile = function(name, content, sourceMap) {
4344
if(typeof sourceMap === "string") {
4445
this.assets[name] = new OriginalSource(content, sourceMap);

0 commit comments

Comments
 (0)