MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / resolveId

Function resolveId

packages/vite/helpers/workers.ts:9–14  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80

Tested by

no test coverage detected