Skip to content

[code-infra] Migrate to vite from webpack for e2e tests#48248

Merged
brijeshb42 merged 7 commits intomui:masterfrom
brijeshb42:e2e-vite
Apr 13, 2026
Merged

[code-infra] Migrate to vite from webpack for e2e tests#48248
brijeshb42 merged 7 commits intomui:masterfrom
brijeshb42:e2e-vite

Conversation

@brijeshb42
Copy link
Copy Markdown
Contributor

@brijeshb42 brijeshb42 commented Apr 9, 2026

Gets rid of webpack and related dependencies.

@brijeshb42 brijeshb42 added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Apr 9, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Apr 9, 2026

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 336f0d5

@brijeshb42 brijeshb42 marked this pull request as ready for review April 9, 2026 12:14
@brijeshb42 brijeshb42 requested review from a team April 9, 2026 12:14
@brijeshb42 brijeshb42 force-pushed the e2e-vite branch 2 times, most recently from b863412 to 0af2982 Compare April 9, 2026 12:30
Copy link
Copy Markdown
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Two points:

  1. Need to update the e2e test's README (script name updates, "webpack bundle" mention).
  2. Error message in test/e2e/index.test.ts need to be updated with the new script names.

react(),
],
define: {
'process.env': '{}',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why to do this? It's used here, right?

@brijeshb42 brijeshb42 force-pushed the e2e-vite branch 2 times, most recently from ce54e41 to 0c1b9bb Compare April 10, 2026 11:24
"scripts": {
"start": "cross-env NODE_ENV=production pnpm build && concurrently --success first --kill-others \"pnpm run test\" \"pnpm run server\"",
"build": "vite build",
"dev": "concurrently \"pnpm run build --watch\" \"pnpm run server\"",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can't we rely on vite dev?

keepNames: true,
},
plugins: [
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note: We could bring this plugin to the test utils package since we're using it in several places

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll add separately.

Copy link
Copy Markdown
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

few comments, nothing blocking

@brijeshb42 brijeshb42 merged commit 51d83ae into mui:master Apr 13, 2026
19 checks passed
@brijeshb42 brijeshb42 deleted the e2e-vite branch April 13, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants