File tree Expand file tree Collapse file tree 7 files changed +23
-1
lines changed
test/cases/loaders/issue-4959 Expand file tree Collapse file tree 7 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class LoaderPlugin {
4747 ] ,
4848 true ,
4949 "lm" ,
50- false ,
50+ true ,
5151 err => {
5252 compilation . semaphore . acquire ( ( ) => {
5353 if ( err ) return callback ( err ) ;
Original file line number Diff line number Diff line change 1+ module . exports = "a" ;
Original file line number Diff line number Diff line change 1+ module . exports = require ( "c" ) ;
Original file line number Diff line number Diff line change 1+ module . exports = "c" ;
Original file line number Diff line number Diff line change 1+ it ( "should resolve module dependencies recursively" , function ( ) {
2+ require ( "!./loaders/index!a" ) . should . be . eql ( "c" ) ;
3+ } ) ;
Original file line number Diff line number Diff line change 1+ module . exports = function ( ) {
2+ var callback = this . async ( ) ;
3+ this . loadModule ( "b" , function ( error ) {
4+ if ( error ) {
5+ return callback ( error ) ;
6+ }
7+ callback ( null , "module.exports = require('b');" ) ;
8+ } ) ;
9+ } ;
Original file line number Diff line number Diff line change 1+ {
2+ "browser" : {
3+ "a" : " ./a.js" ,
4+ "b" : " ./b.js" ,
5+ "c" : " ./c.js"
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments