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) {
274
274
if ( meta && ( ! meta . options . id || meta . options . id === id ) ) {
275
275
var wasExtracted = Array . isArray ( meta . content ) ;
276
276
if ( shouldExtract !== wasExtracted ) {
277
+ if ( shouldExtract ) {
278
+ chunk . removeModule ( module ) ;
279
+ return callback ( ) ;
280
+ }
277
281
module [ NS + "/extract" ] = shouldExtract ; // eslint-disable-line no-path-concat
278
282
compilation . rebuildModule ( module , function ( err ) {
279
283
if ( err ) {
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ webpackJsonp([0],{
3
3
/***/ 2 :
4
4
/***/ ( function ( module , exports , __webpack_require__ ) {
5
5
6
- __webpack_require__ ( 7 ) ;
6
+ __webpack_require__ ( 9 ) ;
7
+
8
+ modules . export = function ( ) {
9
+ return 'Route Homepage' ;
10
+ } ;
7
11
8
12
9
13
/***/ } ) ,
10
14
11
- /***/ 7 :
15
+ /***/ 9 :
12
16
/***/ ( function ( module , exports ) {
13
17
14
18
module . exports = "styles-homepage\n"
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ webpackJsonp([1],{
3
3
/***/ 1 :
4
4
/***/ ( function ( module , exports , __webpack_require__ ) {
5
5
6
- __webpack_require__ ( 6 ) ;
6
+ __webpack_require__ ( 8 ) ;
7
+
8
+ modules . export = function ( ) {
9
+ return 'Route Contact' ;
10
+ } ;
7
11
8
12
9
13
/***/ } ) ,
10
14
11
- /***/ 6 :
15
+ /***/ 8 :
12
16
/***/ ( function ( module , exports ) {
13
17
14
18
module . exports = "styles-contact\n"
Original file line number Diff line number Diff line change 1
1
require ( './styles.txt' ) ;
2
+
3
+ modules . export = function ( ) {
4
+ return 'Route Contact' ;
5
+ } ;
Original file line number Diff line number Diff line change 1
1
require ( './styles.txt' ) ;
2
+
3
+ modules . export = function ( ) {
4
+ return 'Route Homepage' ;
5
+ } ;
You can’t perform that action at this time.
0 commit comments