Skip to content

Commit

Permalink
[bugfix] Refactor default exports to named exports
Browse files Browse the repository at this point in the history
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
  • Loading branch information
morozow committed Sep 11, 2024
1 parent f91f4e5 commit c3b5825
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion packages/mui-system/src/borders/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './borders';
export * from './borders';
1 change: 0 additions & 1 deletion packages/mui-system/src/cssGrid/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './cssGrid';
export * from './cssGrid';
1 change: 0 additions & 1 deletion packages/mui-system/src/display/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './display';
export * from './display';
1 change: 0 additions & 1 deletion packages/mui-system/src/flexbox/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './flexbox';
export * from './flexbox';
1 change: 0 additions & 1 deletion packages/mui-system/src/palette/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './palette';
export * from './palette';
1 change: 0 additions & 1 deletion packages/mui-system/src/positions/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './positions';
export * from './positions';
2 changes: 1 addition & 1 deletion packages/mui-system/src/shadows/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './shadows';
export * from './shadows';
1 change: 0 additions & 1 deletion packages/mui-system/src/sizing/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './sizing';
export * from './sizing';
1 change: 0 additions & 1 deletion packages/mui-system/src/spacing/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './spacing';
export * from './spacing';
1 change: 0 additions & 1 deletion packages/mui-system/src/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './style';
export * from './style';
1 change: 0 additions & 1 deletion packages/mui-system/src/typography/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default } from './typography';
export * from './typography';

0 comments on commit c3b5825

Please sign in to comment.