Is your feature request related to a problem? Please describe.
Hello @hand-dot, again, thank you for great lib)
I’ve noticed rather big bundle size of UI package:
I’ve checked it with bundle visualizer and there are both development and production react and react-dom files included:
Describe the solution you'd like
I’ve checked Vite docs for possible solution for that and have found that defining process.env.NODE_ENV in Vite configs fixes it:
only production files are included
Is your feature request related to a problem? Please describe.
Hello @hand-dot, again, thank you for great lib) I’ve noticed rather big bundle size of UI package:
I’ve checked it with bundle visualizer and there are both development and production react and react-dom files included:
Describe the solution you'd like
I’ve checked Vite docs for possible solution for that and have found that defining process.env.NODE_ENV in Vite configs fixes it: only production files are included
my PR: https://github.com/pdfme/pdfme/pull/422
Describe alternatives you've considered
I've got no alternative solutions
Additional context
No response