(specifier, context, next)
| 1 | export async function resolve(specifier, context, next) { |
| 2 | const nextResult = await next(specifier, context); |
| 3 | |
| 4 | if (!specifier.endsWith('.css')) { |
| 5 | return nextResult; |
| 6 | } |
| 7 | |
| 8 | return { |
| 9 | format: 'css', |
| 10 | shortCircuit: true, |
| 11 | url: nextResult.url |
| 12 | }; |
| 13 | } |
| 14 | |
| 15 | export async function load(url, context, next) { |
| 16 | if (context.format !== 'css') { |
no outgoing calls
no test coverage detected