Closed markusand closed 2 years ago
Hello,
well, I can set them as peerDependencies
, but it won't solve your issue with bundle size, because this plugin is not using them at all.
Large bundle size is because of 2 things:
core-js
),intersection-observer
and whatwg-fetch
).If you are using this plugin directly in browser (e.g.: via CDN), you can use modern version (-modern
suffix in filename), which has no transpilation and no polyfills in place.
If you are using bundler, it's up to you to transpile it and include polyfills according your own needs.
If you have more questions, feel free to ask here.
Thanks.
I'm not an expert, I'm sorry if I'm wrong with my assumptions. Vue instance is injected in install method and Axios instance is passed in options object or taken from global scope. Would setting Vue and Axios as peerDependencies help reduce the size of the bundle?