rete icon indicating copy to clipboard operation
rete copied to clipboard

Rete with Svelte/Sapper and Rollup?

Open 3daddict opened this issue 3 years ago • 2 comments

Has anyone tried to get Rete implemented on Svelte/Sapper using Rollup?

Been trying to use this but running into all kinds of issues with importing the required modules. Can't seem to get around the Polyfills error and it would be really nice to breakout rete into svelte components.

Anyone tried this and have an example they can share???

3daddict avatar Sep 26 '20 17:09 3daddict

I've been working on getting Svelte/Rete to play together for the past week or so.

I initially found rete-svelte-render-plugin, but it unfortunately did not work right out the gate for me. With no plugin documentation, and 0 experience with Rete, I figured that since I knew React, I could just work backwards from the official Rete React render plugin to fix whatever the issue was.

I did get things working, and started to play around with some of the other plugins, and ran into some issues with the Task plugin (probably due to my lack of experience/understanding of Rete). At that point, I started to feel like the integration between Rete, Svelte, and the Task plugin felt a bit hacky and not very Sveltey when it came to my use case.

I'm now using Svelte stores for all the IO, and actually dropped the Task plugin all together, as derived stores and potentially RxJs will suffice for my use case. I've got a few more ideas to try, but It's already feeling pretty nice now, and I'm starting to really enjoy prototyping with Rete and Svelte.

I'm not sure when I'll get around to factoring out some sample code to provide, but I'd be happy to assist further over email or discord if that helps.

pkrogel-kws avatar Oct 02 '20 17:10 pkrogel-kws

Thanks @pkrogel-kws ya any sample code you have time provide would be really interesting to see. The plugins & lack of docs have been blocking me from getting this to work and breaking things out into Svelte components. Looking forward to a possible update on this in future!

3daddict avatar Oct 05 '20 19:10 3daddict

Svelte plugin just has been released

Ni55aN avatar Jul 02 '23 19:07 Ni55aN

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

rete-js[bot] avatar Aug 06 '23 01:08 rete-js[bot]