1export function load(url, context, nextLoad) {
2  switch (url) {
3    case 'byop://1/index.mjs':
4      return {
5        source: 'console.log("index.mjs!")',
6        format: 'module',
7        shortCircuit: true,
8      };
9    case 'byop://1/index2.mjs':
10      return {
11        source: 'import c from "./sub.mjs"; console.log(c);',
12        format: 'module',
13        shortCircuit: true,
14      };
15    case 'byop://1/sub.mjs':
16      return {
17        source: 'export default 42',
18        format: 'module',
19        shortCircuit: true,
20      };
21    case 'byop://1/index.byoe':
22      return {
23        source: 'console.log("index.byoe!")',
24        format: 'module',
25        shortCircuit: true,
26      };
27    default:
28      return nextLoad(url, context);
29  }
30}
31