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

Function load

packages/vite/helpers/config-as-json.ts:22–30  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

nsConfigToJsonFunction · 0.85

Tested by

no test coverage detected