File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const { codes: {
3030prepareMainThreadExecution ( false ,  true ) ; 
3131
3232const  isLoadingSea  =  isSea ( ) ; 
33+ const  isBuiltinWarningNeeded  =  isLoadingSea  &&  isExperimentalSeaWarningNeeded ( ) 
3334if  ( isExperimentalSeaWarningNeeded ( ) )  { 
3435  emitExperimentalWarning ( 'Single executable application' ) ; 
3536} 
@@ -98,7 +99,7 @@ let warnedAboutBuiltins = false;
9899function  embedderRequire ( id )  { 
99100  const  normalizedId  =  normalizeRequirableId ( id ) ; 
100101  if  ( ! normalizedId )  { 
101-     if  ( isLoadingSea   &&   isExperimentalSeaWarningNeeded ( )  &&  ! warnedAboutBuiltins )  { 
102+     if  ( isBuiltinWarningNeeded  &&  ! warnedAboutBuiltins )  { 
102103      emitWarningSync ( 
103104        'Currently the require() provided to the main script embedded into '  + 
104105        'single-executable applications only supports loading built-in modules.\n'  + 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments