@sarcio/hmr-runtime
v0.3.0
Published
Applies approved Sarcio code fixes in a running React page, with component state preserved.
Readme
@sarcio/hmr-runtime
The browser half of Sarcio code fixes for React apps:
it applies an approved fix in the running page, with component state preserved.
Use it with @sarcio/vite-plugin
or @sarcio/webpack-plugin.
Setup guides and the full reference are in the Sarcio docs.
Install
You don't install or call this package yourself. Add
@sarcio/vite-plugin or
@sarcio/webpack-plugin
to your build: the plugin brings this runtime with it and starts it on the page,
with no change to your app.
Security
Every fix is cryptographically signed, and the runtime verifies that signature against your workspace's key before it applies anything. Each fix expires and rolls back by itself.
License
Business Source License 1.1: production use to connect your own applications to a Sarcio subscription or trial is granted; offering a competing service is not. Each version converts to Apache-2.0 four years after its release.
