(id)
| 7 | { |
| 8 | name: 'worker-virtual-package-json', |
| 9 | resolveId(id) { |
| 10 | if (id === '~/package.json') { |
| 11 | return '\0worker:nsconfig-json'; // Use a completely different virtual ID that doesn't look like JSON |
| 12 | } |
| 13 | return null; |
| 14 | }, |
| 15 | load(id) { |
| 16 | if (id === '\0worker:nsconfig-json') { |
| 17 | const configObject = nsConfigToJson(); |
nothing calls this directly
no test coverage detected