dequelabs / dequelabs/cauldron

Production build should minimize template literal strings

Open
#734 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.