| 1 | // Loader hook for tsx-based tests: `.css` imports resolve to an empty module |
| 2 | // so component modules (e.g. HeartbeatPanel) can statically import their CSS |
| 3 | // without failing under node. Vite handles the real CSS in browser builds. |
| 4 | export async function load(url, context, nextLoad) { |
| 5 | if (url.endsWith(".css")) { |
| 6 | return { format: "module", source: "export default \"\";", shortCircuit: true }; |
| 7 | } |
| 8 | return nextLoad(url, context); |
| 9 | } |
| 10 |