Open leon opened 2 weeks ago
A potential problem I see is that we are unmarshalling esbuild from json. Does that mean that the plugin that is a javascript function won't get converted to go? https://github.com/sst/ion/blob/dev/pkg/runtime/node.go#L70
How does esbuild handle the conversion from javascript to go?
@leon I was following your messages in Discord, did you make some progress on this?
No unfortunately not. Tried a couple of things but got stuck.
It's a bit complicated because of the typescript / go marshaling.
Hope someone else can look at it soon 🤓
yeah this is quite tricky - we used to require you to pass in a path to a file that loaded the plugins, but don't really want to go back to that
we might not be able to support esbuild plugins
A solution we could do is add a config Boolean to function called experimentalDecorators which in turn adds an esbuild plugin that compiles using typescript.
Only a couple of lines of code is needed.
What do you think? 🤔
When supplying a custom esbuild config to Function it's not getting applied