(url, context, nextLoad)
| 1 | import { readFile } from 'node:fs/promises'; |
| 2 | |
| 3 | export async function load(url, context, nextLoad) { |
| 4 | const resolved = await nextLoad(url, context); |
| 5 | if (context.format === 'commonjs') { |
| 6 | resolved.source = await readFile(new URL(url)); |
| 7 | } |
| 8 | return resolved; |
| 9 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…