Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add PURE annotations to make troika-three-text treeshakeable
Mostly added /*#__PURE__*/ comments at module-level function invocations. Some statements that do have side effects, but those effects are only local to a module, had to be handled by wrapping in an IIFE marked as PURE. This pass is just enough to make troika-three-text and its dependencies treeshakeable. Will do future passes for the other modules, as well as adding CI tools for validating treeshakeability going forward.
- Loading branch information
Showing
8 changed files
with
659 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.