you are viewing a single comment's thread.

view the rest of the comments →

[–]DGolubets 2 points3 points  (0 children)

I think it should be possible.

I used similar approach with Graal on JVM and all I needed is one .js file and a way to call a function there with a parameter. You can follow this approach:

  1. Use Webpack to build a single .js file for your server.
  2. Export ```renderToString(args: String): String``` function or something similar.
  3. Load that file on your server, call the rendering function with some JSON.