@@ -48,6 +48,7 @@ export type SerializedTranspiledModule = {
4848 [ name : string ] : ModuleSource ,
4949 } ,
5050 isEntry : boolean ,
51+ isTestFile : boolean ,
5152 childModules : Array < string > ,
5253 /**
5354 * All extra modules emitted by the loader
@@ -181,6 +182,7 @@ export default class TranspiledModule {
181182 this . transpilationInitiators = new Set ( ) ;
182183 this . initiators = new Set ( ) ;
183184 this . isEntry = false ;
185+ this . isTestFile = false ;
184186
185187 this . hash = hashsum ( `${ this . module . path } :${ this . query } ` ) ;
186188 }
@@ -776,6 +778,7 @@ export default class TranspiledModule {
776778 serializableObject . module = this . module ;
777779 serializableObject . emittedAssets = this . emittedAssets ;
778780 serializableObject . isEntry = this . isEntry ;
781+ serializableObject . isTestFile = this . isTestFile ;
779782 serializableObject . source = this . source ;
780783 serializableObject . childModules = this . childModules . map ( m => m . getId ( ) ) ;
781784 serializableObject . dependencies = Array . from ( this . dependencies ) . map ( m =>
@@ -812,6 +815,7 @@ export default class TranspiledModule {
812815 this . module = data . module ;
813816 this . emittedAssets = data . emittedAssets ;
814817 this . isEntry = data . isEntry ;
818+ this . isTestFile = data . isTestFile ;
815819 this . source = data . source ;
816820
817821 data . dependencies . forEach ( ( depId : string ) => {
0 commit comments