Anyone out there using TypeScript and not using th...
# suitescript
m
Anyone out there using TypeScript and not using the regular TypeScript compiler to generate their JavaScript with? As TypeScript is moving towards deprecating the option to create AMD modules, wondering what the alternative may be or if I need to consider just moving back to regular JavaScript.
c
If they deprecate it I'll probably just pin the last version that supports it until NS supports native es modules.
m
It's not very soon, but the did announce it will be gone as an option in TypeScript 7.0
c
Yeah quite a lot of people use TypeScript without the standard 'tsc' compiler for emitting JavaScript. In many modern setups, 'tsc' is used only for type-checking, while another tool handles the actual build.
c
Which tools do you use to transpile the ts to js files? I tried babel/sucrase/swc previously and ran into issues.
c
tsc (for safety) or esbuild/SWC (for speed) + tsc --noEmit (for safety) Use tsc for everything • Compile + type-check in one step • No surprises with enums, decorators, or edge TS features
Use esbuild + tsc --noEmit
For framework, Use Vite (frontend) or SWC (backend / Next.js)