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: {
30
30
prepareMainThreadExecution ( false , true ) ;
31
31
32
32
const isLoadingSea = isSea ( ) ;
33
+ const isBuiltinWarningNeeded = isLoadingSea && isExperimentalSeaWarningNeeded ( )
33
34
if ( isExperimentalSeaWarningNeeded ( ) ) {
34
35
emitExperimentalWarning ( 'Single executable application' ) ;
35
36
}
@@ -98,7 +99,7 @@ let warnedAboutBuiltins = false;
98
99
function embedderRequire ( id ) {
99
100
const normalizedId = normalizeRequirableId ( id ) ;
100
101
if ( ! normalizedId ) {
101
- if ( isLoadingSea && isExperimentalSeaWarningNeeded ( ) && ! warnedAboutBuiltins ) {
102
+ if ( isBuiltinWarningNeeded && ! warnedAboutBuiltins ) {
102
103
emitWarningSync (
103
104
'Currently the require() provided to the main script embedded into ' +
104
105
'single-executable applications only supports loading built-in modules.\n' +
You can’t perform that action at this time.
0 commit comments