MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / load

Function load

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

Source from the content-addressed store, hash-verified

13 return null;
14 },
15 load(id) {
16 if (id === '\0worker:nsconfig-json') {
17 const configObject = nsConfigToJson();
18 // Return the NativeScript config as a JavaScript module
19 return `export default ${JSON.stringify(configObject, null, 2)};`;
20 }
21 return null;
22 },
23 },
24 // Resolve NativeScript platform-specific files for workers
25 {

Callers

nothing calls this directly

Calls 1

nsConfigToJsonFunction · 0.85

Tested by

no test coverage detected