1import { writeSync } from 'node:fs'; 2import { inspect } from 'node:util' 3 4export async function resolve(...args) { 5 writeSync(1, `resolve arg count: ${args.length}\n`); 6 writeSync(1, inspect({ 7 specifier: args[0], 8 context: args[1], 9 next: args[2], 10 }) + '\n'); 11 12 return { 13 shortCircuit: true, 14 url: args[0], 15 }; 16} 17 18export async function load(...args) { 19 writeSync(1, `load arg count: ${args.length}\n`); 20 writeSync(1, inspect({ 21 url: args[0], 22 context: args[1], 23 next: args[2], 24 }) + '\n'); 25 26 return { 27 format: 'module', 28 source: '', 29 shortCircuit: true, 30 }; 31} 32