@@ -91,21 +91,25 @@ export const generatePrimaryInterfaces = (
9191      TargetNamespace  =  MainNamespace ; 
9292    }  else  if  ( module . process . renderer )  { 
9393      TargetNamespace  =  RendererNamespace ; 
94+     }  else  if  ( module . process . utility )  { 
95+       TargetNamespace  =  UtilityNamespace ; 
9496    } 
9597    if  ( TargetNamespace )  { 
9698      debug ( classify ( module . name ) . toLowerCase ( ) ,  EMRI [ classify ( module . name ) . toLowerCase ( ) ] ) ; 
9799      if  ( ! EMRI [ classify ( module . name ) . toLowerCase ( ) ]  &&  moduleString )  { 
98100        TargetNamespace . push ( moduleString ) ; 
99101        CrossProcessExportsNamespace . push ( moduleString ) ; 
100-         if  ( module . process . utility )  UtilityNamespace . push ( moduleString ) ; 
102+         if  ( TargetNamespace  !==  UtilityNamespace  &&  module . process . utility )  { 
103+           UtilityNamespace . push ( moduleString ) ; 
104+         } 
101105      } 
102106      EMRI [ classify ( module . name ) . toLowerCase ( ) ]  =  true ; 
103107      const  declarations  =  [ ...newConstDeclarations ,  ...newTypeAliases ] . map ( 
104108        ( s )  =>  `  ${ s . substr ( 0 ,  s . length  -  1 ) }  ` , 
105109      ) ; 
106110      TargetNamespace . push ( ...declarations ) ; 
107111      CrossProcessExportsNamespace . push ( ...declarations ) ; 
108-       if  ( module . process . utility )  { 
112+       if  ( TargetNamespace   !==   UtilityNamespace   &&   module . process . utility )  { 
109113        UtilityNamespace . push ( ...declarations ) ; 
110114        if  ( newConstDeclarations . length  >  0 )  { 
111115          utilityNamespaceHasValues  =  true ; 
0 commit comments