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

[charts] Flatten imports from @mui/utils and @mui/system #15603

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

alexfauquette
Copy link
Member

Part of #10354

@alexfauquette alexfauquette added the component: charts This is the name of the generic UI component, not the React module! label Nov 26, 2024
@mui-bot
Copy link

mui-bot commented Nov 26, 2024

Deploy preview: https://deploy-preview-15603--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 64f5b01

@@ -12,7 +12,6 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
import { useBarChartProps } from '@mui/x-charts/internals';
import { BarPlotProps } from '@mui/x-charts';
Copy link
Member

Choose a reason for hiding this comment

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

The lint should catch that one no?

Copy link
Member Author

Choose a reason for hiding this comment

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

I found why (thanks to npx eslint --print-config [file path] config.

Our config was such that it prevents you to do a root import of the package itself

Copy link

codspeed-hq bot commented Nov 26, 2024

CodSpeed Performance Report

Merging #15603 will improve performances by 41.03%

Comparing alexfauquette:flatten-imports (64f5b01) with master (d20eaca)

Summary

⚡ 1 improvements
✅ 5 untouched benchmarks

Benchmarks breakdown

Benchmark master alexfauquette:flatten-imports Change
ScatterChartPro with big data amount 199.7 ms 141.6 ms +41.03%

.eslintrc.js Outdated Show resolved Hide resolved
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Signed-off-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@alexfauquette alexfauquette merged commit 721b285 into mui:master Nov 26, 2024
19 checks passed
@alexfauquette alexfauquette deleted the flatten-imports branch November 26, 2024 14:13
LukasTy added a commit to LukasTy/mui-x that referenced this pull request Dec 19, 2024
Signed-off-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants