dequelabs / dequelabs/cauldron
Production build should minimize template literal strings
Open
tech debt
- Dominant language
- TypeScript
- Stars
- 127
- Forks
- 31
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 8
Description
I was lurking through the production build and noticed that the template literal strings were including `\n` and all of the empty white space, specifically here:
https://github.com/dequelabs/cauldron/blob/942ce56153d9497ab09515ed53eddc744324af0c/packages/react/src/components/ExpandCollapsePanel/ExpandCollapsePanel.tsx#L82-L93
We should keep the formatted version for development, but trim + collapse newlines/spaces where we can to reduce the size in production.
Contributor guide
Assessment
This issue has not been assessed yet.