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

babel-plugin-superjson-next: it should target ES2015 like Next.js default #148

Open
baptisteArno opened this issue Jul 29, 2021 · 3 comments

Comments

@baptisteArno
Copy link

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?

@baptisteArno baptisteArno changed the title babel-plugin-superjson-next: The produced js should target ES2015 like Next.js default babel-plugin-superjson-next: it should target ES2015 like Next.js default Jul 29, 2021
@Skn0tt
Copy link
Member

Skn0tt commented Jul 29, 2021

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?

@baptisteArno
Copy link
Author

Sure I understand, it basically allows targeting IE11 browser.

So, no option to do this as of now?

@Skn0tt
Copy link
Member

Skn0tt commented Jul 29, 2021

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.

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