File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ class ExternalModule extends Module {
120120 updateHash ( hash ) {
121121 hash . update ( this . type ) ;
122122 hash . update ( JSON . stringify ( this . request ) ) ;
123+ hash . update ( JSON . stringify ( this . optional ) ) ;
123124 super . updateHash ( hash ) ;
124125 }
125126}
Original file line number Diff line number Diff line change @@ -323,6 +323,7 @@ module.exports = some/request;`;
323323 hashedText += text ;
324324 }
325325 } ;
326+ externalModule . optional = true ;
326327 externalModule . updateHash ( hash ) ;
327328 } ) ;
328329 it ( "updates hash with request" , function ( ) {
@@ -331,5 +332,8 @@ module.exports = some/request;`;
331332 it ( "updates hash with type" , function ( ) {
332333 hashedText . should . containEql ( "some-type" ) ;
333334 } ) ;
335+ it ( "updates hash with optional flag" , function ( ) {
336+ hashedText . should . containEql ( "true" ) ;
337+ } ) ;
334338 } ) ;
335339} ) ;
Original file line number Diff line number Diff line change 1- Hash: 7861295d7291830ba01f
1+ Hash: e500321cbaac14df7284
22Time: Xms
33 Asset Size Chunks Chunk Names
44main.js 2.61 kB 0 [emitted] main
You can’t perform that action at this time.
0 commit comments