InversifyJS
InversifyJS copied to clipboard
Improve Bundling (switch to rollup)
I was sitting and looking over the NPM downloads of this library, and the size of the bundle jumped out at me.
I mean, 1.15 MB with 400 files for a library? Seems a little too much to me.
That's why I thought it would be cool to switch to rollup, like the other libraries.
Results: ~194kb and only 3 files, no more!

Also, to be able to merge all the .d.ts into single file, I used @microsoft/api-extractor, which imo is really good and efficient.
TODO:
- [ ] Fix tests (or switch to JEST)
- [ ] Improve CI