-
Since Stimulus doesn't require a build step and can work with just module import, would it be possible to somehow avoid node/npm/yarn setup to use it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@yerlaser can you explain a bit more what you are looking for? Some sort of build step is required as browsers don't natively support Ruby. It is possible to do the conversion without node, there is code in Snowpack can do this build step transparently on demand. With Rails, it once was possible to have sprockets do the build - it was working with Rails 6; I haven't checked to see if it could work with Rails 7. |
Beta Was this translation helpful? Give feedback.
-
The README gives an overview of how ruby2js can be called as an API. I've now committed a change that will install the demo as a command added to your PATH in future versions of the ruby2js gem. |
Beta Was this translation helpful? Give feedback.
The README gives an overview of how ruby2js can be called as an API. I've now committed a change that will install the demo as a command added to your PATH in future versions of the ruby2js gem.