Hi,
In every examples, I see Functions use CJS, could I use ESM's imports ? (And would be cool to have TS starter too)
Thanks!
i think functions only support CJS at the moment.
pre-1.4, you can write TS functions and then transpile before deploying so that the deployed code is javascript.
in 1.4, there should be a TS starter since you can execute custom commands (tsc) as part of the build
Okay thanks Steven! Was trying some workarounds but will wait for the custom commands 🙏
Recommended threads
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?