You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- you can exlude this if not listening to events (may cause runtime error) -->
But the way it is bundled, it always throws an EventSourcePolyfill is not defined error even if you don't use events.
You should change the output.globals.eventsource rollup config value from EventSourcePolyfill to globalThis.EventSourcePolyfill so it just resolves to undefined when missing instead of throwing an error. Then indeed the error will only happen when you try to use events and not every time.
The text was updated successfully, but these errors were encountered:
The README says this about
eventsource.min.js
:But the way it is bundled, it always throws an
EventSourcePolyfill is not defined
error even if you don't use events.You should change the
output.globals.eventsource
rollup config value fromEventSourcePolyfill
toglobalThis.EventSourcePolyfill
so it just resolves to undefined when missing instead of throwing an error. Then indeed the error will only happen when you try to use events and not every time.The text was updated successfully, but these errors were encountered: