@@ -187,6 +187,7 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
187187 ExternalsPlugin = require ( "./ExternalsPlugin" ) ;
188188 compiler . apply ( new ExternalsPlugin ( options . output . libraryTarget , options . externals ) ) ;
189189 }
190+ var noSources ;
190191 var legacy ;
191192 var modern ;
192193 var comment ;
@@ -196,6 +197,7 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
196197 var evalWrapped = options . devtool . indexOf ( "eval" ) >= 0 ;
197198 var cheap = options . devtool . indexOf ( "cheap" ) >= 0 ;
198199 var moduleMaps = options . devtool . indexOf ( "module" ) >= 0 ;
200+ noSources = options . devtool . indexOf ( "nosources" ) >= 0 ;
199201 legacy = options . devtool . indexOf ( "@" ) >= 0 ;
200202 modern = options . devtool . indexOf ( "#" ) >= 0 ;
201203 comment = legacy && modern ? "\n/*\n//@ sourceMappingURL=[url]\n//# sourceMappingURL=[url]\n*/" :
@@ -210,7 +212,8 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
210212 append : hidden ? false : comment ,
211213 module : moduleMaps ? true : cheap ? false : true ,
212214 columns : cheap ? false : true ,
213- lineToLine : options . output . devtoolLineToLine
215+ lineToLine : options . output . devtoolLineToLine ,
216+ noSources : noSources ,
214217 } ) ) ;
215218 } else if ( options . devtool && options . devtool . indexOf ( "eval" ) >= 0 ) {
216219 legacy = options . devtool . indexOf ( "@" ) >= 0 ;
0 commit comments