Closed oceandrama closed 1 year ago
You can also invite me to your repo if it is private, but a public minimal reproduction is the most desireable.
@balazsorban44 Unfortunately it's impossible
But my issue is all about simple question - Is it ok that precompiled libraries are not ES5-compatible?
There are many libraries next
using inside browser like stream-browserify
and it comes into production bundle
This issue has been automatically closed because it received no activity for a month and had no reproduction to investigate. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
IE 11
How are you deploying your application? (if relevant)
No response
Describe the Bug
After updating from next 10 to next 12 and running
es-check es5 \".next/static/**/*.js\
I've got a few errors like thisI made some investigation and it seems like code with troubles is located in
next/dist/compiled
folder And as for me, if I addnext/dist/compiled/stream-browserify
innext-transpile-modules
config, errors dissapearsThere are many ES6 features inside next/compiled (like classes, const, etc.), and it comes into production bundle Is it ok that precompiled libraries are not ES5-compatible?
Expected Behavior
Bundle is fully ES5-compatible and works well in IE 11
Link to reproduction
Unfortunately is doesn't reproduce after create-next-app. Looks like I'm using some features in my project that requires packages in next/compiled folder