(id)
| 20 | |
| 21 | // 2. When Vite asks us to load that virtual ID... |
| 22 | load(id) { |
| 23 | if (id === nsConfigVirtualId) { |
| 24 | configObject = nsConfigToJson(); |
| 25 | |
| 26 | // c) Return an ESM wrapper so Vite can import it at build‑time |
| 27 | return `export default ${JSON.stringify(configObject)};`; |
| 28 | } |
| 29 | return null; |
| 30 | }, |
| 31 | |
| 32 | // 3. After Rollup has generated all chunks, emit a package.json asset |
| 33 | // into the output directory (dist/ by default) |
nothing calls this directly
no test coverage detected