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

Function compileJS

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

Source from the content-addressed store, hash-verified

41}
42
43export async function compileJS(file: MDFile, options: CompileOptions) {
44 const r = await compile(file, options)
45 return await prettier.format(String(r), {
46 semi: false,
47 parser: "babel",
48 })
49}
50
51export async function parsedJS(file: MDFile, options: CompileOptions) {
52 const result = await compile(file, {

Callers 1

getStepOutputFunction · 0.90

Calls

no outgoing calls

Tested by 1

getStepOutputFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…