filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

Reducing component bundle size by importing specific components #130

Open jaxomlotus opened 1 year ago

jaxomlotus commented 1 year ago

Hi, is there a way to import just the specific component needed?

for example, instead of:

import { PickerInline } from 'filestack-react';

we would do

import { PickerInline } from 'filestack-react/PickerInline';

The current component size is 266.2k, but I assume it would be reduced if we could specify the exact component we want to import.