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

Function fetchSfcMeta

packages/vite/hmr/frameworks/vue/client/index.ts:713–723  ·  view source on GitHub ↗
(id: string, tag: string)

Source from the content-addressed store, hash-verified

711};
712
713async function fetchSfcMeta(id: string, tag: string): Promise<SfcMeta | null> {
714 try {
715 const url = resolveSfcMetaSpec(id, tag + '_meta');
716 const res = await fetch(url, { method: 'GET' as any });
717 if (!res.ok) return null;
718 const json = await res.json();
719 return json as SfcMeta;
720 } catch {
721 return null;
722 }
723}
724
725// Safely load a component for a .vue SFC. Prefer deterministic assembler first to avoid
726// any variant-compile or TDZ flakiness; only fall back to variant assembly if needed.

Callers 1

loadSfcComponentFunction · 0.85

Calls 2

resolveSfcMetaSpecFunction · 0.85
fetchFunction · 0.85

Tested by

no test coverage detected