1export async function resolve(specifier, context, next) { 2 // This check is needed to make sure that we don't prevent the 3 // resolution from follow-up loaders. It wouldn't be a problem 4 // in real life because loaders aren't supposed to break the 5 // resolution, but the ones used in our tests do, for convenience. 6 if (specifier === 'node:fs' || specifier.includes('loader')) { 7 return next(specifier); 8 } 9 10 return { 11 url: 'file:///incomplete-resolve-chain.js', 12 }; 13} 14