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

Make transitionManager treeshakeable #597

Merged
merged 2 commits into from
May 27, 2017
Merged

Make transitionManager treeshakeable #597

merged 2 commits into from
May 27, 2017

Conversation

Rich-Harris
Copy link
Member

@Rich-Harris Rich-Harris commented May 27, 2017

I think this counts as a bug in Rollup, but since it's easier to fix here (for now) we may as well. The issue was that Rollup is analysing the methods of transitionManager and, finding a reference to transitionManager, concluding that transitionManager is in fact used by the bundle. (It shouldn't descend into those methods until it's already apparent that transitionManager is used.)

Fixed by referencing this instead, and lazily binding the transitionManager.next function.

Fixes #593

@Rich-Harris Rich-Harris merged commit 4f56b65 into master May 27, 2017
@Rich-Harris Rich-Harris deleted the gh-593 branch May 27, 2017 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Rollup with shared helpers always includes transitionManager
1 participant