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

Remove babel-plugin-transform-rename-import #2786

Merged
merged 4 commits into from
Oct 12, 2023
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Oct 11, 2023

Extracted from #2546

Still have no idea what this construction with babel-plugin-transform-rename-import is supposed to do. But it's failing under #2546 as not all import identifiers are to @mui/monorepo/packages/mui-utils/macros/MuiError.macro are writtent hat way. I'm replacing it with the babel macros setup from the front. Until we remove that altogether.

babel operates on individual modules, it doesn't do anything around module resolution. We should leave aliasing to the tools that are concerned with linking modules together. i.e. bundlers

@Janpot Janpot changed the title Fix macro handling Remove babel-plugin-transform-rename-import Oct 11, 2023
@Janpot Janpot added the docs Improvements or additions to the documentation label Oct 11, 2023
@Janpot Janpot marked this pull request as ready for review October 11, 2023 17:44
@Janpot Janpot requested a review from a team October 11, 2023 17:44
@Janpot Janpot merged commit 46541cb into mui:master Oct 12, 2023
11 checks passed
@Janpot Janpot deleted the docsdwef branch October 12, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants