MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / run

Function run

src/platform/bun-hyperscript.js:8–14  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

6const hsExt = '._hs';
7
8function run(modulePath) {
9 modulePath = path.resolve(modulePath);
10 const args = { module: { dir: path.dirname(modulePath), id: modulePath } };
11 return Bun.file(modulePath).text()
12 .then(code => _hyperscript.evaluate(code, {}, args))
13 .catch(e => console.error("Cannot execute file:", e));
14}
15
16_hyperscript.addFeature("require", function parseRequire(parser) {
17 if (!parser.matchToken("require")) return;

Callers 15

installFunction · 0.70
bun-hyperscript.jsFile · 0.70
pick.jsFile · 0.50
make.jsFile · 0.50
if.jsFile · 0.50
reactivity.jsFile · 0.50
liveTemplate.jsFile · 0.50
regressions.jsFile · 0.50
logicalOperator.jsFile · 0.50
idRef.jsFile · 0.50

Calls 2

resolveMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected