We should add the ability to discard unused code. (Called tree shaking in JavaScript land).
This would mean removing functions that are never called, and components that are never used, and any other files in the package that are never referenced.
There are several edge cases that we will need to guard against, like certain functions referenced by string name as callbacks, components added through node update() calls, and I'm sure some others as well. But we can develop patterns to support these edge cases.
This would allow for smaller package sizes.
We should add the ability to discard unused code. (Called tree shaking in JavaScript land).
This would mean removing functions that are never called, and components that are never used, and any other files in the package that are never referenced.
There are several edge cases that we will need to guard against, like certain functions referenced by string name as callbacks, components added through node
update()calls, and I'm sure some others as well. But we can develop patterns to support these edge cases.This would allow for smaller package sizes.