(modulePath)
| 6 | const hsExt = '._hs'; |
| 7 | |
| 8 | function 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; |
no test coverage detected