Files
backstage/.changeset/eleven-apples-accept.md
T
Mitchell Hentges 882101cd9b Deep-import LightAsync to improve module-import time in tests
`LightAsync` is a `react-syntax-highlighter` that defers the computation
of some fancy syntax-parsing logic.
However, `react-syntax-highlighter` exposes a `Light` variant that does
this computation up-front.

In runtime, tree-shaking ensures that we only import `LightAsync`, but
tree-shaking doesn't happen in tests (because it's slow).

So, deep-import to avoid incurring the syntax-parsing penalty when that
functionality isn't used in the test itself.

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2022-09-22 15:04:49 +02:00

109 B

@backstage/core-components
@backstage/core-components
patch

Deep-import LightAsync component to improve module-import speed