preactjs / signals

Manage state with style in every framework
https://preactjs.com/blog/introducing-signals/
MIT License
3.71k stars 91 forks source link

UMD output of `@preact/signals`, `@preact/signals-react` use wrong name for `@preact/signals-core` #398

Closed rschristian closed 1 year ago

rschristian commented 1 year ago

@preact/signals-core attaches to window.preactSignalsCore rather predictably, but @preact/signals, @preact/signals-react will search for window.signalsCore. Microbundle takes a guess that the namespace isn't important, such as it wouldn't be in say forks (@rschristian/preact -> preact).

Need to specify the globals is all.