You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in order to execute TypeScript code inside GraalJS, one should use the TypeScript compiler (or some other compiler like swc or esbuild) in order to prepare the sources for execution in GraalJS. Although this is possible, there are some disadvantages like:
supporting an extra build step which is quite different from standard Java setups
good understanding of how TypeScript modules are translated to JavaScript modules and using a custom Truffle File System for resolving them
additional configuration for debugging support
Having a way to execute TypeScript code in a Truffle context would simplify all those aspects as ideally the developer should be concerned only with writing his code and not dealing with any additional setup. Any necessary configurations should be done using the standard way of configuring a Graal context through its options.
Having said that, I have created a PoC how I imagine TypeScript support could look like:
It would be great to hear your thoughts about it and see if it's possible to contribute this into GraalJS itself. Huge thanks to @chumer for providing valuable feedback and support for implementing this!
The text was updated successfully, but these errors were encountered:
Currently, in order to execute TypeScript code inside GraalJS, one should use the TypeScript compiler (or some other compiler like swc or esbuild) in order to prepare the sources for execution in GraalJS. Although this is possible, there are some disadvantages like:
Having a way to execute TypeScript code in a Truffle context would simplify all those aspects as ideally the developer should be concerned only with writing his code and not dealing with any additional setup. Any necessary configurations should be done using the standard way of configuring a Graal context through its options.
Having said that, I have created a PoC how I imagine TypeScript support could look like:
It would be great to hear your thoughts about it and see if it's possible to contribute this into GraalJS itself. Huge thanks to @chumer for providing valuable feedback and support for implementing this!
The text was updated successfully, but these errors were encountered: