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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Speed-up rebuild in karma #1064

Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 16, 2021

Leverage mui/material-ui#24967

Before

  • Build: ~18s
  • Re-builds: ~2.5s

After

  • Build: ~18s
  • Re-builds: ~500ms

@eps1lon I have tested the changes in this repo, definitely works 馃槏. We save 2s for each iteration.

@@ -1,6 +1,8 @@
const path = require('path');
const webpack = require('webpack');

const CI = Boolean(process.env.CI);
Copy link
Member

Choose a reason for hiding this comment

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

I would rename the var to isCI has boolean convention isSomething | hasItem

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not aware we have a convention for naming boolean. I believe, so far, we have used them interchangeably. Often omitting is.

Here I think that we should aim toward importing the config file from the mono repo so we don't have to bring improvements like this manually.

@oliviertassinari oliviertassinari merged commit e2eeef9 into mui:master Feb 17, 2021
@oliviertassinari oliviertassinari deleted the karma-speed-up-rebuild branch February 17, 2021 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants