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

[core] Update babel configs #9244

Closed
wants to merge 7 commits into from
Closed

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Jun 6, 2023

Clean up the babel configs, and share as much as possible between the root & docs configs.

Linked: mui/material-ui#37461

@romgrk romgrk added core Infrastructure work going on behind the scenes performance labels Jun 6, 2023
Comment on lines -58 to -59
// TODO fix useGridSelector side effect and enable back.
// '@babel/plugin-transform-react-constant-elements',
Copy link
Contributor Author

@romgrk romgrk Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oliviertassinari I've uncommented this one to see if we can cleanup, not sure what's the side-effect though.

Linked: #666

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the PR (#666) to better describe the issue.

@mui-bot
Copy link

mui-bot commented Jun 6, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-9244--material-ui-x.netlify.app/

Updated pages

No updates.

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 673.1 1,068.8 673.1 906.48 138.593
Sort 100k rows ms 747.7 1,264.7 747.7 995.72 178.814
Select 100k rows ms 212.8 317.2 287.9 272.96 42.635
Deselect 100k rows ms 193.6 335.4 296 279.2 47.964

Generated by 🚫 dangerJS against 6a9886b

Comment on lines -26 to -27
// backport of https://github.com/zeit/next.js/pull/9511
['next/babel', { 'transform-runtime': { corejs: 2, version: transformRuntimeVersion } }],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest corejs version is 3 and this is 4 years old, I think we can use the default version?

@eps1lon

@romgrk romgrk closed this Jul 18, 2023
@romgrk romgrk deleted the build-babel-config branch July 18, 2023 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants