Skip to content

Remove "derequire" from minified bundles #2964

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

Merged
merged 1 commit into from
Jan 28, 2015
Merged

Remove "derequire" from minified bundles #2964

merged 1 commit into from
Jan 28, 2015

Conversation

zertosh
Copy link
Contributor

@zertosh zertosh commented Jan 27, 2015

The point of running "derequire" is to rename the require calls to something else. Well, minifying already does this in its mangle step. You still need "derequire" for the non-minified bundles though 😞

This reduces the run time of grunt build from ~52sec to ~36sec on my machine (~30% less time). I can also shave off an extra 2-3 seconds by updating derequire's outdated esprima-fb and estraverse - I'll put in a PR for that in that project later.

/cc @zpao

@zertosh
Copy link
Contributor Author

zertosh commented Jan 27, 2015

Should help alleviate #1933

@zpao
Copy link
Member

zpao commented Jan 28, 2015

Wow, good call. Thanks!

zpao added a commit that referenced this pull request Jan 28, 2015
Remove "derequire" from minified bundles
@zpao zpao merged commit e2d3370 into facebook:master Jan 28, 2015
@zertosh
Copy link
Contributor Author

zertosh commented Feb 2, 2015

This should really improve derequire's perf calvinmetcalf/derequire#23

@zertosh
Copy link
Contributor Author

zertosh commented Feb 2, 2015

@zpao The derequire changed landed as 1.2.1, which falls within ^1.2.0, so there is no need to make changes to React. Update your modules and enjoy the speed increase :)

@zpao
Copy link
Member

zpao commented Feb 3, 2015

Awesome!

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

Successfully merging this pull request may close these issues.

2 participants