MCPcopy Create free account
hub / github.com/adobe/react-spectrum / loadAliases

Function loadAliases

packages/dev/mcp/s2/scripts/build-data.mjs:91–97  ·  view source on GitHub ↗
(modPath, exportName)

Source from the content-addressed store, hash-verified

89}
90
91async function loadAliases(modPath, exportName) {
92 if (!fs.existsSync(modPath)) {
93 return {};
94 }
95 const mod = await import(pathToFileURL(modPath).href);
96 return mod[exportName] ?? {};
97}
98
99function buildBaseColorKeysFromSpectrumTokens(tokens) {
100 const keys = new Set();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected