Compiling TypeScript

It seems that TypeScript code is generally compiled once into JavaScript code and then executed in Node.js, etc. I wonder if TypeScript for Foundry’s Functions also follows this process.

TypeScript Function code is indeed compiled to JavaScript before it gets executed. (Additionally, we use some techniques that you’d also see when optimizing website performance, such as minification and bundling dependencies.)

Code however doesn’t get executed directly in Nodejs, but rather the V8 JavaScript engine.

1 Like

Thank you very much for your reply!