invisible-college / statebus

All aboard the STATEBUS!!!
117 stars 5 forks source link

wip migrate to esm and connect with tag #49

Open tylerchilds opened 2 years ago

tylerchilds commented 2 years ago

I've got some in flight progress on getting tag using statebus here: https://github.com/tylerchilds/tag/pull/2

this is the current work for getting statebus ready for esm and ripping out the react dependencies.

toomim commented 2 years ago

Thanks for doing this. Does this now work with esm in the browser? In node?

I'm hoping we can find a way that's also compatible with the old style of loading code, script tags in browsers, and require() in node.

I was able to make braid-http work with both esm and require on nodejs, but I haven't gone as far as to make it work with esm in browsers. I suspect it might need a simple transpilation step.

toomim commented 2 years ago

Or maybe I shouldn't be trying to make this work via <script> tags. I haven't thought that through. Maybe you have.

tylerchilds commented 2 years ago

We should be able to write it in the latest ESM and then we can transpile out compatible versions for other runtimes.