1import { writeSync } from 'node:fs'; 2 3 4export async function load(url, context, next) { 5 if (url === 'node:fs' || url.includes('loader')) { 6 return next(url); 7 } 8 9 // Here for asserting dynamic import 10 await import('xxx/loader-load-passthru.mjs'); 11 12 writeSync(1, 'load dynamic import' + '\n'); // Signal that this specific hook ran 13 return next(url, context); 14} 15