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 lazy require.context from regression tests #44964

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

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 7, 2025

Avoid React.lazy, I don't feel like it brings a lot of benefit here as we're running through all the fixtures anyway and it causes throttled fallbacks in the suspense boundary.

If the blacklist is too big, this may cause a lot of overhead in the bundle. Alternative would be to generate a virtual module that re-exports all desired fixtures and no more.

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

mui-bot commented Jan 7, 2025

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against aa13f11

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: out-of-date The pull request has merge conflicts and can't be merged scope: code-infra Specific to the core-infra product test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants