storyblok / storyblok-js-client

Universal JavaScript client for Storyblok's API
MIT License
127 stars 87 forks source link

Lighten the dependencies #63

Closed eyn closed 4 years ago

eyn commented 4 years ago

It would be great to lighten the dependencies of this package a bit - on the server side its not a problem but if doing queries on the client side then this adds >25Kb to the bundle size. It really feels like we should be able to get this down to 1-2kb as most of the bundle is axios, corejs, qs and @babel.

Screenshot 2020-09-03 at 15 24 04

Ideally we would be able to pass in a function that behaved like fetch to avoid polyfilling that too

onefriendaday commented 4 years ago

We have a beta release that solves your problem: https://github.com/storyblok/storyblok-js-client/releases/tag/v3.0.0-beta.3

Version 3 will be released soon.

eyn commented 4 years ago

Thanks great news! We will try the beta release