replaces our signals implementation with the native signals proposal polyfill
introduces a vanilla browser bundle via esbuild
Background: It looks likely that reactive signals will become a language feature. TC39 signals are meant to be a lower-level primitive that is wrapped in a library. We're going to adopt signals by wrapping these low-level features in a higher-level API. The library API for Spellcaster will not change.
Using native signals has some significant advantages:
Standard signals act as a Schelling point for the ecosystem.
Many libraries are contributing to the spec and/or adopting.
Fixes #39
This PR:
signal-polyfill
as a dependencyBackground: It looks likely that reactive signals will become a language feature. TC39 signals are meant to be a lower-level primitive that is wrapped in a library. We're going to adopt signals by wrapping these low-level features in a higher-level API. The library API for Spellcaster will not change.
Using native signals has some significant advantages: