ThreadSky
About ThreadSky
Log In
johannesewald.de
•
63 days ago
What's currently the fastest way to transpile TS to individual JS files without type checking? We can't just strip types because we use enums.
Comments
Log in
with your Bluesky account to leave a comment
[–]
bebraw.bsky.social
•
63 days ago
Maybe
https://github.com/bloomberg/ts-blank-space
and then treat enums as a special case separately with a codemod if needed?
1
reply
[–]
dr-axel.de
•
63 days ago
Maybe:
https://dev.to/andreasbergstrom/simplify-typescript-builds-with-esbuild-and-skip-tsctsx-2124
https://github.com/swc-project/swc/issues/2092
Could also work:
https://github.com/microsoft/typescript-go
Node.js can run code with enums:
https://nodejs.org/api/cli.html#--experimental-transform-types
2
2
reply
[–]
johannesewald.de
•
63 days ago
I thought esbuild produces a single file but maybe there‘s an option
1
1
reply
[–]
dr-axel.de
•
63 days ago
The blog post I linked to seems to have figured it out.
1
reply
[–]
johannesewald.de
•
63 days ago
What tool does Node use under the hood?
1
1
reply
[–]
dr-axel.de
•
63 days ago
I’d love to know myself. This is the pull request:
https://github.com/nodejs/node/pull/54283
1
1
reply
[–]
bebraw.bsky.social
•
63 days ago
That's using Amaro.
https://github.com/nodejs/amaro
2
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
https://dev.to/andreasbergstrom/simplify-typescript-builds-with-esbuild-and-skip-tsctsx-2124
https://github.com/swc-project/swc/issues/2092
Could also work: https://github.com/microsoft/typescript-go
Node.js can run code with enums: https://nodejs.org/api/cli.html#--experimental-transform-types