Is runtime compilation required for Typescript?

Hi there!

Temporal is an excellent product, and I love it so far. Stupid question for the Typescript devs: Is compiling Javascript code during runtime absolutely required for each workflow?

In this example here, it seems that the webpack compilation happens during each worker creation? Has anyone found that this compilation affects performance at all?

Thank you!

Michael Angelo

You can create the bundle ahead of time and load it from disk: https://github.com/temporalio/worker-versioning-replay-demo/blob/main/src/create-bundle.ts