-
Notifications
You must be signed in to change notification settings - Fork 67
perf: drop the babel dependency #843
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
Conversation
🦋 Changeset detectedLatest commit: 44194a9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, does this get rid of that pesky switch case warning? Should you only apply it on Next >= 15.4?
Yes, that warning is removed.
I think somebody reported it for 15.3.<I don't remember what> last week |
actually it was 15.2.5 |
Oh and thanks for another review 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! And yeah we should add it to aws as well
You guys are too fast 😄 |
This helped a lot. It significantly reduced the worker size. Before: After: Do you have in mind other similar optimizations like this one? |
`patchNodeEnvironment` was introduced in #843 to drop the babel dependency. It was upstream into aws via opennextjs/opennextjs-aws#948. This PR drops the local version to use the upstream version.
`patchNodeEnvironment` was introduced in #843 to drop the babel dependency. It was upstream into aws via opennextjs/opennextjs-aws#948. This PR drops the local version to use the upstream version.
The former patch of next server is not enough.
The code was changed sometimes in Next 15.
We should upstream that to aws.
Before (e2e/experimental)
After
/cc @conico974 @sommeeeer