Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES Module #211

Open
HoplaGeiss opened this issue Sep 20, 2022 · 2 comments
Open

ES Module #211

HoplaGeiss opened this issue Sep 20, 2022 · 2 comments

Comments

@HoplaGeiss
Copy link

Is there a way to import it as a modern ES Module ?
In the latest version of Angular it's causing warnings: CommonJS or AMD dependencies can cause optimization bailouts

@Yaffle
Copy link
Owner

Yaffle commented Sep 21, 2022

You can import the file itself, get the eventsource from the globalThis

@Yaffle
Copy link
Owner

Yaffle commented Oct 17, 2022

Will it work? Right now the polyfill requires no tranforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants