filestack-react icon indicating copy to clipboard operation
filestack-react copied to clipboard

Reducing component bundle size by importing specific components

Open jaxomlotus opened this issue 3 years ago • 0 comments

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.

jaxomlotus avatar Nov 13 '22 18:11 jaxomlotus