Skip to content

[code-infra] Replace babel-plugin-add-import-extension #1899

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented May 9, 2025

Noticed in https://github.com/mui/joy-ui/pull/116 that this plugin can't handle .css imports, it turns them into .css.js. Our plugin does resolve it correctly. base ui doesn't need to import css, but the plugin is quite outdated, we can align babel configs.

@Janpot Janpot added improvement This is not a bug, nor a new feature scope: code-infra Specific to the code-infra product labels May 9, 2025
Copy link

pkg-pr-new bot commented May 9, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@1899

commit: a6f1895

Copy link

netlify bot commented May 9, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit a6f1895
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/681e1fa0c6f2cb000808264e
😎 Deploy Preview https://deploy-preview-1899--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Janpot Janpot marked this pull request as ready for review May 9, 2025 10:42
@Janpot Janpot requested review from atomiks and michaldudak as code owners May 9, 2025 10:42
@@ -20,7 +20,7 @@
"docs:size-why": "cross-env DOCS_STATS_ENABLED=true pnpm docs:build",
"docs:start": "pnpm --filter docs serve",
"docs:link-check": "pnpm --filter docs link-check",
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 8 build:modern",
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 1 build:stable",
Copy link
Member Author

@Janpot Janpot May 9, 2025

Choose a reason for hiding this comment

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

Not that it's important for this PR, but there is no modern build, and the command can never run concurrently as all build processes try to read and write the same file at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This is not a bug, nor a new feature scope: code-infra Specific to the code-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant