appbaseio / appbaseio/appbase-js

Optimize build size

オープン
#27 コメント 0 件 リアクション 0 件 担当者 1 名 @metagrover が担当を希望しています GitHub で見る
enhancement
主要言語
JavaScript
スター
42
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

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

![](https://i.imgur.com/rRuR4NW.png)

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。