rokucommunity / rokucommunity/brighterscript
Tree shaking
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.