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

Optimize build size #27

Open
siddharthlatest opened this issue Nov 8, 2017 · 0 comments
Open

Optimize build size #27

siddharthlatest opened this issue Nov 8, 2017 · 0 comments
Assignees
Milestone

Comments

@siddharthlatest
Copy link
Member

Current build size for a minified version of the library comes to 200KB (~500 KB without minification), GZipped version is ~60KB.

These are the optimization points for reducing bloat from the library:

  1. babel-pollyfill contributes ~200KB raw size, or 40% of the size. This can be stripped out in a lite version of the library aimed at native platforms or modern browsers (which have 97% support of ES6 spec).
  2. Use tree shaking / rollup to remove other unused parts of the dependency tree. This comes with no sacrifice and should be done.
  3. url package (23KB raw) is just used for a parse function. A lightweight alternative can be used for this.
  4. Analyze the rest of the lib dependencies for possible optimizations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants