Open baptisteArno opened 2 years ago
Hi @baptisteArno! SuperJSON can be (and is) used outside of Next.js, which is why we need to be careful around such changes. Could you elaborate / share a link on the implications of targeting ES2015? What are the improvements that would bring?
Sure I understand, it basically allows targeting IE11 browser.
So, no option to do this as of now?
No, there's no way for you to change the build output for SuperJSON locally. I could definitely see us moving to ES2015 output, if there are considerable improvements in that. If it does nothing but remove IE11 support, that'd be a net-negative.
Hi!
It looks like the produced file is not ES2015 code. Any way I can enable this?
Shouldn't be the default behavior as Next.js is targetting ES2015 by default?