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
Fix code splitting issue #7943
Fix code splitting issue #7943
Conversation
…a custom webpack config
✅ ethereum-org-website-dev deploy preview ready
|
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.
Button, | ||
Link, | ||
Tag, | ||
} |
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.
This took me a very long time to detect 😆 hate these kind of issues.
Once I removed the .babelrc
for some reason these exports stop working as I was expecting. I had to export these in a more manual way, with the expected structure.
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.
Looks good... As discussed, we can research further potentially using @netlify/functions
with TypeScript support and remove usage of netlify-lambda
going forward
Is there any perf monitoring on the repo to determine how much this change improved the bundle size? |
With the inclusion of a custom
.babelrc
(on v4) code splitting stopped working correctly. This is due to a Gatsby bug.Description
In order to fix it, we have deleted the custom
.babelrc
(since there seems to be no way of ignoring it from Gatsby) and we have created a custom webpack config file to be used bynetlify-lambda
.