sssx
Version:
Fast Svelte Static Site X – SSG/SSR focused on SEO for multi-million pages websites
9 lines (8 loc) • 425 B
text/typescript
/** this was crucial to have to be able to run ts-node, because in tsx this would not run without it at all! */
export const execArgv = (traceWarnings: boolean = false) => [
"--require",
"ts-node/register",
"--import",
'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));',
traceWarnings ? "--trace-warnings" : "",
];