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

Adding a note about webpack & ESM #228

Open
ahmedelgabri opened this issue Jan 13, 2020 · 4 comments
Open

Adding a note about webpack & ESM #228

ahmedelgabri opened this issue Jan 13, 2020 · 4 comments

Comments

@ahmedelgabri
Copy link

@ahmedelgabri ahmedelgabri commented Jan 13, 2020

A bit of context, we introduced swr two weeks ago to our codebase. Everything is working fine, but we started to get some reports about some parts of the app being broken in slightly older browsers (Chrome 49, Firefox 59, Edge 18, etc…)

We found out that swr was causing a syntax error in these browsers because webpack by default picked the ESM build (rightly so) but because it's not transpiled it ended in the bundle without going through our babel config. Which broke these older browsers. So I'd like to add a not in README file, about the ESM build & webpack, what do you think?

@shuding
Copy link
Member

@shuding shuding commented Feb 24, 2020

Thank you @ahmedelgabri, sounds good!

@tanmaylaud
Copy link
Contributor

@tanmaylaud tanmaylaud commented Jul 14, 2020

@shuding , is this an active issue? If yes, could you please provide more context?

@shuding
Copy link
Member

@shuding shuding commented Jul 14, 2020

@tanmaylaud The issue of broken code for old browsers is already resolved in latest releases. So we are only missing documentation (or a notice message) here.

@tanmaylaud
Copy link
Contributor

@tanmaylaud tanmaylaud commented Jul 14, 2020

@shuding So a note in the parent README that mentions support for older browsers (given in the issue above) would be good enough?

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.