Current compiler is in IDE and it sends compiled JS to the runtime. The same mechanism also required in the runtime with application/typescript content type.
https://github.com/NucleoidAI/IDE/blob/e2dc3150b54e96719bba6dcc6c571206a6d1a8bc/src/lib/TypeScript.js#L61-L67