Merge pull request #13808 from mitchhentgesspotify/mhentges/light-async-deep-import

Deep-import LightAsync to improve module-import time in tests
This commit is contained in:
Fredrik Adelöw
2022-09-27 11:17:53 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Deep-import LightAsync component to improve module-import speed
@@ -18,7 +18,8 @@ import React from 'react';
import { useTheme } from '@material-ui/core/styles';
import { BackstageTheme } from '@backstage/theme';
import { CopyTextButton } from '../CopyTextButton';
import { LightAsync } from 'react-syntax-highlighter';
import type {} from 'react-syntax-highlighter';
import { default as LightAsync } from 'react-syntax-highlighter/dist/esm/light-async';
import dark from 'react-syntax-highlighter/dist/esm/styles/hljs/dark';
import docco from 'react-syntax-highlighter/dist/esm/styles/hljs/docco';