(specifier, ctx, nextResolve)
| 12 | * @type {import('node:module').ResolveHook} |
| 13 | */ |
| 14 | export async function resolve(specifier, ctx, nextResolve) { |
| 15 | const ext = extname(specifier); |
| 16 | if (ext === '.css' || ext === '.scss') { |
| 17 | // For CSS/SCSS, return the mock CSS module and skip default resolution. |
| 18 | return { |
| 19 | format: 'module', |
| 20 | url: css, |
| 21 | shortCircuit: true, |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | return nextResolve(specifier); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * |
no outgoing calls
no test coverage detected