File tree Expand file tree Collapse file tree
test/watchCases/plugins/automatic-prefetch-plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ var a = require ( "./a" ) ;
2+ var b = require ( "./b" ) ;
3+ var c = require ( "./c" ) ;
4+
5+ module . exports = a + b + c + '.0' ;
Original file line number Diff line number Diff line change 1+ module . exports = "This " ;
Original file line number Diff line number Diff line change 1+ module . exports = "is only " ;
Original file line number Diff line number Diff line change 1+ module . exports = "a test" ;
Original file line number Diff line number Diff line change 1+ it ( "should watch for changes" , function ( ) {
2+ require ( "./foo/" + WATCH_STEP ) . should . be . eql ( 'This is only a test.' + WATCH_STEP ) ;
3+ if ( + WATCH_STEP > 0 ) {
4+ STATS_JSON . modules [ 0 ] . prefetched . should . be . true ( ) ;
5+ STATS_JSON . modules [ 1 ] . prefetched . should . be . true ( ) ;
6+ STATS_JSON . modules [ 2 ] . prefetched . should . be . true ( ) ;
7+ STATS_JSON . modules [ 3 ] . prefetched . should . be . true ( ) ;
8+ }
9+ } ) ;
Original file line number Diff line number Diff line change 1+ var a = require ( "./a" ) ;
2+ var b = require ( "./b" ) ;
3+ var c = require ( "./c" ) ;
4+
5+ module . exports = a + b + c + '.1' ;
Original file line number Diff line number Diff line change 1+ var a = require ( "./a" ) ;
2+ var b = require ( "./b" ) ;
3+ var c = require ( "./c" ) ;
4+
5+ module . exports = a + b + c + '.2' ;
Original file line number Diff line number Diff line change 1+ var a = require ( "./a" ) ;
2+ var b = require ( "./b" ) ;
3+ var c = require ( "./c" ) ;
4+
5+ module . exports = a + b + c + '.3' ;
Original file line number Diff line number Diff line change 1+ var webpack = require ( "../../../../" ) ;
2+ module . exports = {
3+ plugins : [
4+ new webpack . AutomaticPrefetchPlugin ( )
5+ ]
6+ } ;
You can’t perform that action at this time.
0 commit comments