graphiql: avoid using dynamic default import

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-07-31 18:34:37 +02:00
parent d45bbfeb69
commit 3a8ab72248
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-graphiql': patch
---
Minor internal tweak to lazy loading in order to improve module compatibility.
@@ -22,7 +22,9 @@ import { GraphQLEndpoint } from '../../lib/api';
import { BackstageTheme } from '@backstage/theme';
import { Progress } from '@backstage/core-components';
const GraphiQL = React.lazy(() => import('graphiql'));
const GraphiQL = React.lazy(() =>
import('graphiql').then(m => ({ default: m.GraphiQL })),
);
const useStyles = makeStyles<BackstageTheme>(theme => ({
root: {