File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,16 +101,16 @@ const BUN_BUILTIN_NAMESPACE = 'bun:'
101101// Some runtimes like Bun injects namespaced modules here, which is not a node builtin
102102const nodeBuiltins = builtinModules . filter ( ( id ) => ! id . includes ( ':' ) )
103103
104- const isConfiguredAsExternalCache = new WeakMap <
104+ const isBuiltinCache = new WeakMap <
105105 ( string | RegExp ) [ ] ,
106106 ( id : string , importer ?: string ) => boolean
107107> ( )
108108
109109export function isBuiltin ( builtins : ( string | RegExp ) [ ] , id : string ) : boolean {
110- let isBuiltin = isConfiguredAsExternalCache . get ( builtins )
110+ let isBuiltin = isBuiltinCache . get ( builtins )
111111 if ( ! isBuiltin ) {
112112 isBuiltin = createIsBuiltin ( builtins )
113- isConfiguredAsExternalCache . set ( builtins , isBuiltin )
113+ isBuiltinCache . set ( builtins , isBuiltin )
114114 }
115115 return isBuiltin ( id )
116116}
You can’t perform that action at this time.
0 commit comments