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

Compilation hangs #2729

Closed
jacarma opened this issue Feb 28, 2019 · 9 comments · Fixed by #2732
Closed

Compilation hangs #2729

jacarma opened this issue Feb 28, 2019 · 9 comments · Fixed by #2732

Comments

@jacarma
Copy link

jacarma commented Feb 28, 2019

  • Rollup Version: 1.3.2
  • Operating System (or Browser): macOS Sierra
  • Node Version: 8.10.0, 9.11.2 and 10.15.1

How Do We Reproduce?

git clone https://github.com/jacarma/with-recharts.git
cd with-recharts
yarn

This project has been generated with npx create-react-library with default options. Then added a dependency to recharts. Then updated all dependencies to latest versions.

Expected Behavior

Build process completes successfully.
Alternatively: build fails and an error message point to what is wrong.

Actual Behavior

Build never ends, no error messages appear

> yarn build
yarn run v1.12.1
$ rollup -c

src/index.tsx → dist/index.js, dist/index.es.js...
@TrySound
Copy link
Member

This problem is fixed in the latest rollup version.
/cc @transitive-bullshit

@jacarma
Copy link
Author

jacarma commented Feb 28, 2019

I'm testing with the 1.3.2 and still doesn't work. Is there a newer version?

Thanks a lot

@lukastaegert
Copy link
Member

I can confirm your repro is hanging during its third tree-shaking run. Probably something we missed. Will see if I can figure it out.

@lukastaegert
Copy link
Member

@lukastaegert
Copy link
Member

Thanks so much for this issue! As it turned out the fix was rather simple and a small oversight in one place of the code. Please check out if #2732 works for you (i.e. npm install rollup/rollup#gh-2729-fix-call-performance-regression).

@lukastaegert
Copy link
Member

Should be a nice performance improvement for everyone.

@lukastaegert
Copy link
Member

Thanks especially for the nice repro, that was key to finding the cause!

@jacarma
Copy link
Author

jacarma commented Mar 1, 2019

Thanks a lot for such a quick fix! I'll try it out in a few minutes.

@jacarma
Copy link
Author

jacarma commented Mar 1, 2019

It works nicely in v1.3.3 thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants