File tree Expand file tree Collapse file tree 5 files changed +24
-4
lines changed
test/cases/multiple-entries-async Expand file tree Collapse file tree 5 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,10 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
274274 if ( meta && ( ! meta . options . id || meta . options . id === id ) ) {
275275 var wasExtracted = Array . isArray ( meta . content ) ;
276276 if ( shouldExtract !== wasExtracted ) {
277+ if ( shouldExtract ) {
278+ chunk . removeModule ( module ) ;
279+ return callback ( ) ;
280+ }
277281 module [ NS + "/extract" ] = shouldExtract ; // eslint-disable-line no-path-concat
278282 compilation . rebuildModule ( module , function ( err ) {
279283 if ( err ) {
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ webpackJsonp([0],{
33/***/ 2 :
44/***/ ( function ( module , exports , __webpack_require__ ) {
55
6- __webpack_require__ ( 7 ) ;
6+ __webpack_require__ ( 9 ) ;
7+
8+ modules . export = function ( ) {
9+ return 'Route Homepage' ;
10+ } ;
711
812
913/***/ } ) ,
1014
11- /***/ 7 :
15+ /***/ 9 :
1216/***/ ( function ( module , exports ) {
1317
1418module . exports = "styles-homepage\n"
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ webpackJsonp([1],{
33/***/ 1 :
44/***/ ( function ( module , exports , __webpack_require__ ) {
55
6- __webpack_require__ ( 6 ) ;
6+ __webpack_require__ ( 8 ) ;
7+
8+ modules . export = function ( ) {
9+ return 'Route Contact' ;
10+ } ;
711
812
913/***/ } ) ,
1014
11- /***/ 6 :
15+ /***/ 8 :
1216/***/ ( function ( module , exports ) {
1317
1418module . exports = "styles-contact\n"
Original file line number Diff line number Diff line change 11require ( './styles.txt' ) ;
2+
3+ modules . export = function ( ) {
4+ return 'Route Contact' ;
5+ } ;
Original file line number Diff line number Diff line change 11require ( './styles.txt' ) ;
2+
3+ modules . export = function ( ) {
4+ return 'Route Homepage' ;
5+ } ;
You can’t perform that action at this time.
0 commit comments