• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1export function resolve(specifier, { parentURL }, defaultResolve) {
2  if (specifier === 'test') {
3    return {
4      url: 'file://'
5    };
6  }
7  return defaultResolve(specifier, {parentURL}, defaultResolve);
8}
9
10export function getFormat(url, context, defaultGetFormat) {
11  if (url === 'file://') {
12    return {
13      format: 'dynamic'
14    }
15  }
16  return defaultGetFormat(url, context, defaultGetFormat);
17}
18