1export async function resolve(specifier, { parentURL }, defaultResolve) { 2 if (specifier === 'unknown-builtin-module') { 3 return { 4 url: 'node:unknown-builtin-module' 5 }; 6 } 7 return defaultResolve(specifier, {parentURL}, defaultResolve); 8} 9 10export async function getFormat(url, context, defaultGetFormat) { 11 if (url === 'node:unknown-builtin-module') { 12 return { 13 format: 'builtin' 14 }; 15 } 16 return defaultGetFormat(url, context, defaultGetFormat); 17} 18