• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1export async function resolve(specifier, { parentURL, importAttributes }, next) {
2  if (parentURL && specifier === '../fixtures/es-modules/test-esm-ok.mjs') {
3    return {
4      shortCircuit: true,
5      url: 'file:///asdf',
6    };
7  }
8  return next(specifier);
9}
10
11export async function load(url, context, next) {
12  if (url === 'file:///asdf') {
13    return {
14      format: 'esm',
15      shortCircuit: true,
16      source: '',
17    }
18  }
19  return next(url);
20}
21