@@ -214,11 +214,11 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
214
214
return false ;
215
215
if ( ! Array . isArray ( content ) && content != null )
216
216
throw new Error ( "Exported value was not extracted as an array: " + JSON . stringify ( content ) ) ;
217
- module . meta [ NS ] = {
217
+ module [ NS ] = {
218
218
content : content ,
219
219
options : opt || { }
220
220
} ;
221
- return options . allChunks || module . meta [ NS + "/extract" ] ; // eslint-disable-line no-path-concat
221
+ return options . allChunks || module [ NS + "/extract" ] ; // eslint-disable-line no-path-concat
222
222
} ;
223
223
} ) ;
224
224
var filename = this . filename ;
@@ -245,17 +245,17 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
245
245
var extractedChunk = extractedChunks [ chunks . indexOf ( chunk ) ] ;
246
246
var shouldExtract = ! ! ( options . allChunks || chunk . isInitial ( ) ) ;
247
247
async . forEach ( chunk . modules . slice ( ) , function ( module , callback ) {
248
- var meta = module . meta && module . meta [ NS ] ;
248
+ var meta = module [ NS ] ;
249
249
if ( meta && ( ! meta . options . id || meta . options . id === id ) ) {
250
250
var wasExtracted = Array . isArray ( meta . content ) ;
251
251
if ( shouldExtract !== wasExtracted ) {
252
- module . meta [ NS + "/extract" ] = shouldExtract ; // eslint-disable-line no-path-concat
252
+ module [ NS + "/extract" ] = shouldExtract ; // eslint-disable-line no-path-concat
253
253
compilation . rebuildModule ( module , function ( err ) {
254
254
if ( err ) {
255
255
compilation . errors . push ( err ) ;
256
256
return callback ( ) ;
257
257
}
258
- meta = module . meta [ NS ] ;
258
+ meta = module [ NS ] ;
259
259
if ( ! Array . isArray ( meta . content ) ) {
260
260
err = new Error ( module . identifier ( ) + " doesn't export content" ) ;
261
261
compilation . errors . push ( err ) ;
0 commit comments