MCPcopy
hub / github.com/code-hike/codehike / parsedJS

Function parsedJS

packages/codehike/tests/utils.ast.tsx:51–63  ·  view source on GitHub ↗
(file: MDFile, options: CompileOptions)

Source from the content-addressed store, hash-verified

49}
50
51export async function parsedJS(file: MDFile, options: CompileOptions) {
52 const result = await compile(file, {
53 ...options,
54 outputFormat: "function-body",
55 jsx: false,
56 })
57 const { default: Content } = await run(
58 result,
59 (options.development ? devRuntime : runtime) as any,
60 )
61 const block = parse(Content)
62 return { block }
63}
64
65export async function renderHTML(
66 file: MDFile,

Callers 1

getStepOutputFunction · 0.90

Calls 1

parseFunction · 0.90

Tested by 1

getStepOutputFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…