@@ -87,17 +87,17 @@ class ModuleConcatenationPlugin {
8787 const nonHarmonyReasons = module . reasons . filter ( reason => ! reason . dependency || ! ( reason . dependency instanceof HarmonyImportDependency ) ) ;
8888 if ( nonHarmonyReasons . length > 0 ) {
8989 const importingModules = new Set ( nonHarmonyReasons . map ( r => r . module ) . filter ( Boolean ) ) ;
90- const importingExplainations = new Set ( nonHarmonyReasons . map ( r => r . explaination ) . filter ( Boolean ) ) ;
90+ const importingExplanations = new Set ( nonHarmonyReasons . map ( r => r . explanation ) . filter ( Boolean ) ) ;
9191 const importingModuleTypes = new Map ( Array . from ( importingModules ) . map ( m => [ m , new Set ( nonHarmonyReasons . filter ( r => r . module === m ) . map ( r => r . dependency . type ) . sort ( ) ) ] ) ) ;
9292 setBailoutReason ( module , ( requestShortener ) => {
9393 const names = Array . from ( importingModules ) . map ( m => `${ m . readableIdentifier ( requestShortener ) } (referenced with ${ Array . from ( importingModuleTypes . get ( m ) ) . join ( ", " ) } )` ) . sort ( ) ;
94- const explainations = Array . from ( importingExplainations ) . sort ( ) ;
95- if ( names . length > 0 && explainations . length === 0 )
94+ const explanations = Array . from ( importingExplanations ) . sort ( ) ;
95+ if ( names . length > 0 && explanations . length === 0 )
9696 return `Module is referenced from these modules with unsupported syntax: ${ names . join ( ", " ) } ` ;
97- else if ( names . length === 0 && explainations . length > 0 )
98- return `Module is referenced by: ${ explainations . join ( ", " ) } ` ;
99- else if ( names . length > 0 && explainations . length > 0 )
100- return `Module is referenced from these modules with unsupported syntax: ${ names . join ( ", " ) } and by: ${ explainations . join ( ", " ) } ` ;
97+ else if ( names . length === 0 && explanations . length > 0 )
98+ return `Module is referenced by: ${ explanations . join ( ", " ) } ` ;
99+ else if ( names . length > 0 && explanations . length > 0 )
100+ return `Module is referenced from these modules with unsupported syntax: ${ names . join ( ", " ) } and by: ${ explanations . join ( ", " ) } ` ;
101101 else
102102 return "Module is referenced in a unsupported way" ;
103103 } ) ;
0 commit comments