top-bun icon indicating copy to clipboard operation
top-bun copied to clipboard

.ts file support

Open bcomnes opened this issue 1 year ago • 1 comments

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?

bcomnes avatar Mar 13 '24 21:03 bcomnes

Reprioritizing this now that node has type stripping.

bcomnes avatar Feb 21 '25 18:02 bcomnes

This is done.

bcomnes avatar May 28 '25 04:05 bcomnes