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

material-ui library development slow #934

Closed
michael-land opened this issue Nov 11, 2020 · 2 comments
Closed

material-ui library development slow #934

michael-land opened this issue Nov 11, 2020 · 2 comments
Labels
kind: optimization Performance, space, size, etc improvement problem: no repro No reproduction was provided (and have not tried to repro without one) problem: removed issue template OP removed the issue template without good cause problem: stale Issue has not been responded to in some time

Comments

@michael-land
Copy link

michael-land commented Nov 11, 2020

Anyone ideas how to speed up build when building component library on top of material-ui?

"peerDependencies": {
    "react": ">=16",
    "@emotion/core": "latest",
    "@emotion/styled": "latest",
    "@material-ui/core": "next",
    "@material-ui/icons": "next",
    "@material-ui/lab": "next"
  },
  "devDependencies": {
    "@emotion/core": "latest",
    "@emotion/styled": "latest",
    "@material-ui/core": "next",
    "@material-ui/icons": "next",
    "@material-ui/lab": "next",
}

Current Behavior

It takes about 90 seconds to build a simple material-ui component library
image

Expected behavior

It should be faster

Suggested solution(s)

Additional context

Your environment


@agilgur5 agilgur5 added problem: removed issue template OP removed the issue template without good cause problem: no repro No reproduction was provided (and have not tried to repro without one) labels Nov 11, 2020
@agilgur5
Copy link
Collaborator

agilgur5 commented Nov 12, 2020

Could you provide a minimal reproduction of this? Build time typically only grows with the size of your source code (especially if skipLibCheck is turned on, which seems to happen regardless for rpts2 per ezolenko/rollup-plugin-typescript2#212) unless you've configured tsdx.config.js to bundle external dependencies.
That being said, the --transpileOnly flag exists to speed up builds by skipping type-checking.

Your issue is also missing environment details, so it's unclear what version you're on. There have been several performance improvements in recent versions.

@agilgur5 agilgur5 added the kind: optimization Performance, space, size, etc improvement label Nov 12, 2020
@agilgur5 agilgur5 added the problem: stale Issue has not been responded to in some time label Nov 23, 2020
@agilgur5
Copy link
Collaborator

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: optimization Performance, space, size, etc improvement problem: no repro No reproduction was provided (and have not tried to repro without one) problem: removed issue template OP removed the issue template without good cause problem: stale Issue has not been responded to in some time
Projects
None yet
Development

No branches or pull requests

2 participants