Coder Social home page Coder Social logo

Comments (5)

leon avatar leon commented on June 27, 2024

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?

from ion.

jayair avatar jayair commented on June 27, 2024

@leon I was following your messages in Discord, did you make some progress on this?

from ion.

leon avatar leon commented on June 27, 2024

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 🤓

from ion.

thdxr avatar thdxr commented on June 27, 2024

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

from ion.

leon avatar leon commented on June 27, 2024

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? 🤔

from ion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.