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 @@ -102,16 +102,16 @@ const BUN_BUILTIN_NAMESPACE = 'bun:'
102102// Some runtimes like Bun injects namespaced modules here, which is not a node builtin
103103const nodeBuiltins = builtinModules . filter ( ( id ) => ! id . includes ( ':' ) )
104104
105- const isConfiguredAsExternalCache = new WeakMap <
105+ const isBuiltinCache = new WeakMap <
106106 ( string | RegExp ) [ ] ,
107107 ( id : string , importer ?: string ) => boolean
108108> ( )
109109
110110export function isBuiltin ( builtins : ( string | RegExp ) [ ] , id : string ) : boolean {
111- let isBuiltin = isConfiguredAsExternalCache . get ( builtins )
111+ let isBuiltin = isBuiltinCache . get ( builtins )
112112 if ( ! isBuiltin ) {
113113 isBuiltin = createIsBuiltin ( builtins )
114- isConfiguredAsExternalCache . set ( builtins , isBuiltin )
114+ isBuiltinCache . set ( builtins , isBuiltin )
115115 }
116116 return isBuiltin ( id )
117117}
You can’t perform that action at this time.
0 commit comments