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

[code-infra] Remove commonjs imports in docs #44976

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 8, 2025

Tried to port regression test fixtures to vite but it chokes on these imports of commonjs modules. I've struggled several times as well with this in the past.

Removed the mixing of module systems altogether so no-one has to waste any more time on this.

  • move to next.config.ts
  • docs/config move from cjs to esm
  • @mui/internal-markdown move from cjs to esm
  • split reportBrokenLinks into lib part and cli part. Avoid having to detect lib/cli usage

@Janpot Janpot added the scope: code-infra Specific to the core-infra product label Jan 8, 2025
@mui-bot
Copy link

mui-bot commented Jan 8, 2025

Netlify deploy preview

https://deploy-preview-44976--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 6619f7c

@Janpot Janpot changed the title [code-infra] Avoid mixing cjs and esm for docs config [code-infra] Remove commonjs imports in docs Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants