robmarshall / next-gravity-forms

MIT License
5 stars 10 forks source link

Exclude third party packages when not used #31

Open robmarshall opened 9 months ago

robmarshall commented 9 months ago

We have begun adding a number of third party packages.

These should be excluded from the users bundle when not required for a particular form.

Unsure how to handle exactly, but as this whole package is clientside, maybe the usual deferred import flow?

Stay away from next dynamic, as that forces this to be a 100% next package. Currently it is fairly React friendly no matter where it is used.