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

Shrink browser build by removing async and requiring Lodash piecemeal #76

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Nov 27, 2018

The minified size went from 216 KB to 122 KB. Did three things:

  1. Instead of _.isArray, we use things like var isArray = require('lodash/isArray')
  2. Removed the async package; we weren't using it for much
  3. Replaced some of Lodash's methods with native methods (like _.isUndefined(x) with x === void 0.

See #75.

@EvanHahn EvanHahn force-pushed the shrinkBrowserBuildSizeByHalf branch 3 times, most recently from ad194d0 to 8b8183f Compare November 28, 2018 16:11
@kasrak kasrak merged commit 933a08f into master Nov 28, 2018
@EvanHahn EvanHahn deleted the shrinkBrowserBuildSizeByHalf branch November 28, 2018 18:22
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.

2 participants