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

[bugfix] Refactor default exports to named exports #43702

Conversation

morozow
Copy link
Contributor

@morozow morozow commented Sep 11, 2024

The TypeScript compiler complete without errors now, allowing for the proper usage of the @mui/system package components.

Replaced all default exports with named exports to improve module consistency and tree-shaking capabilities. This change ensures uniform export style across the codebase and aids in better maintainability and IDE auto-completion.

Removed export { default } from './typography'; and other undefined exports highlighted into a bug report.

Bug Report: Error in @mui/system: Modules ./typography and others have no exported member default

Replaced all default exports with named exports to improve module consistency and tree-shaking capabilities. This change ensures uniform export style across the codebase and aids in better maintainability and IDE auto-completion.

Bug Report: mui#43685
@morozow
Copy link
Contributor Author

morozow commented Sep 16, 2024

The problem has been fixed by updating the documentation: #43747

@morozow morozow closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants