invisible-college / statebus

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

bugfix: allow client to run in strict mode #51

Open tylerchilds opened 2 years ago

tylerchilds commented 2 years ago

tested locally, this allows for the scripts to be included as esm with the least amount of friction:

import "http://localhost:8042/statebus.js"
import "http://localhost:8042/client-library.js"
import "http://unpkg.com/braidify/braidify-client.js"

window.braid_fetch = fetch

export const state = bus.state