jotai: jotai breaks ie11 on nextjs with arrow function
Hi, I am testing this great lib and found out it breaks ie11 on next js with the arrow function.
ie 11 reports this error:
SCRIPT1002: Syntax error
_app.js (11916,31)
And it points to this line of code:
const hasInitialValue = atom => 'init' in atom;
I understand jotai supports ie11. It seems its standard dist output doesn’t transpire arrow function.
Any idea how to transpire it to work with nextjs on ie11? Sorry if it is a naive issue. Couldn’t find an issue addressing this.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (9 by maintainers)
busy recently. Would twist nextjs config later. thanks anyway.