top-bun
top-bun copied to clipboard
.ts file support
If its not too annoying, maybe consider adding .ts file support. esbuild supports it.
- Look for .ts files (precedence goes to .ts because someone might build out into the same directory in weird cases) but .js is still the golden path.
- Import / direct run with https://github.com/tapjs/tapjs/tree/main/src/typescript or https://github.com/TypeStrong/ts-node
- Lazy load ts-node only if a .ts file is found.
Questions:
- Does loading a loader in the main thread carry over to workers?
- Do we need to load the loader into every worker?
Reprioritizing this now that node has type stripping.
This is done.