taskcluster / taskcluster-client-web

A Taskcluster client library for the browser
Mozilla Public License 2.0
3 stars 8 forks source link

Reduce impact on bundle size #35

Open edmorley opened 5 years ago

edmorley commented 5 years ago

taskcluster-client-web currently adds 93KB to the minified bundle size: https://bundlephobia.com/result?p=taskcluster-client-web@8.0.4 https://unpkg.com/taskcluster-client-web@8.0.4/build/index.js

This is larger than:

It would be good if this could be reduced.

One option might be to provide a module entrypoint in package.json that references the separate source files, and also seeing if sideEffects: "false" can be used to improve tree shakability: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free