tanmayrajani / notifications-preview-github

Browser Extension: preview GitHub notifications with same page pop-overs
https://chrome.google.com/webstore/detail/github-notifications-prev/kgilejfahkjidpaclkepbdoeioeohfmj?hl=en&gl=IN
MIT License
141 stars 15 forks source link

Meta: Update to parcel v2 #113

Closed fregante closed 3 years ago

fregante commented 3 years ago

Depends on https://github.com/parcel-bundler/parcel/pull/5304

❯ parcel-pr-5304-cli build source/manifest.json --no-minify
✨ Built in 7.53s

dist/manifest.json                                   782 B    241ms
dist/github-notifications-preview.9b915661.css     4.39 KB    1.01s
dist/options-storage.js                           40.23 KB    1.02s
dist/github-notifications-preview.js              22.76 KB    1.02s
dist/icon-128.6d4f4520.png                         1.26 KB    310ms
dist/options.html                                    864 B    912ms
dist/options.34975271.css                          1.69 KB    874ms
dist/options.3ed58f63.js                             141 B    880ms
fregante commented 3 years ago
❯ nr build
✨ Built in 2.19s

dist/options-storage.js                             33.49 KB    216ms
├── node_modules/webext-options-sync/index.js        34.3 KB    351ms
├── node_modules/webext-detect-page/index.js         1.07 KB     16ms
└── extension/options-storage.js                       178 B    988ms

dist/github-notifications-preview.js                29.35 KB    215ms
├── extension/github-notifications-preview.jsx       6.25 KB    1.01s
├── node_modules/dom-chef/index.js                   4.75 KB    344ms
├── node_modules/delegate-it/index.js                2.96 KB    572ms
├── node_modules/many-keys-map/index.js               2.5 KB     23ms
├── node_modules/select-dom/index.js                 2.22 KB    572ms
├── node_modules/push-form/index.js                   1.7 KB    572ms
├── node_modules/element-ready/index.js              1.14 KB    569ms
├── node_modules/doma/index.js                         387 B    571ms
├── node_modules/p-defer/index.js                      227 B     22ms
└── extension/libs/utils.js                            226 B    328ms

dist/github-notifications-preview.css                 4.6 KB    214ms
└── extension/github-notifications-preview.css        4.6 KB    397ms

dist/options.eba36657.css                            2.17 KB    134ms
└── node_modules/webext-base-css/webext-base.css     2.17 KB    329ms

dist/icon-128.png                                    1.26 KB    103ms
└── extension/icon-128.png                           1.26 KB    331ms

dist/options.html                                      864 B    135ms
└── extension/options.html                             890 B    985ms

dist/manifest.json                                     751 B    154ms
└── extension/manifest.json                            814 B     80ms

dist/options.94a4dc9c.js                                64 B    135ms
└── extension/options.js                                40 B     39ms
Successfully compiled 3 files with Babel (533ms).
fregante commented 3 years ago

Parcel v1

✨  Built in 3.99s.

dist/options-storage.js                  31.32 KB    2.73s
dist/github-notifications-preview.js     24.45 KB    2.81s
dist/github-notifications-preview.css      4.6 KB    2.66s
dist/webext-base.f655f105.css             1.73 KB    2.03s
dist/options.7075c809.js                  1.53 KB    2.03s
dist/icon-128.png                         1.26 KB    1.50s
dist/options.html                           868 B    1.61s
dist/manifest.json                          745 B    2.00s
Successfully compiled 7 files with Babel (908ms).

Parcel v2

✨ Built in 2.13s

dist/manifest.json                          751 B     98ms
dist/github-notifications-preview.css      4.6 KB    214ms
dist/options-storage.js                  33.49 KB    216ms
dist/github-notifications-preview.js     29.35 KB    215ms
dist/icon-128.png                         1.26 KB    114ms
dist/options.html                           864 B    137ms
dist/options.eba36657.css                 2.17 KB    137ms
dist/options.94a4dc9c.js                     64 B    138ms
Successfully compiled 6 files with Babel (734ms).

Glad to see some savings, especially glad to see parcelRequire junk disappearing from options.js (1.53 KB -> 64 B)