• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1export async function getSource(url, { format }, defaultGetSource) {
2  if (url.endsWith('fixtures/es-modules/message.mjs')) {
3    // Oh, I’ve got that one in my cache!
4    return {
5      source: `export const message = 'Woohoo!'.toUpperCase();`
6    }
7  } else {
8    return defaultGetSource(url, {format}, defaultGetSource);
9  }
10}
11