MCPcopy Create free account
hub / github.com/remix-run/react-router / getExportNames

Function getExportNames

packages/react-router-dev/vite/plugin.ts:491–494  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

489};
490
491const getExportNames = (code: string): string[] => {
492 let [, exportSpecifiers] = esModuleLexer(code);
493 return exportSpecifiers.map(({ n: name }) => name);
494};
495
496const getRouteManifestModuleExports = async (
497 viteChildCompiler: Vite.ViteDevServer | null,

Callers 2

getRouteModuleExportsFunction · 0.85
transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected