Load a compiled-hook program's default export from file.
JS module formats (.mjs/.cjs/.js) load via dynamic import directly; a
TypeScript hook (.ts/.mts/.cts) loads only under a TS-capable runtime
(tsx, or a Node that strips types). When the runtime is the reason, the error
says so and points at authoring the hook as .mjs; any other failure is
reported as itself.
Load a compiled-hook program's default export from
file.JS module formats (
.mjs/.cjs/.js) load via dynamic import directly; a TypeScript hook (.ts/.mts/.cts) loads only under a TS-capable runtime (tsx, or a Node that strips types). When the runtime is the reason, the error says so and points at authoring the hook as.mjs; any other failure is reported as itself.