Skip to content

Commit 1e865ba

Browse files
authored
Merge pull request #24 from grafana/bohandley/monaco-fix
Monaco editor lazy load hack
2 parents a0fd7a8 + eab3a86 commit 1e865ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React, { Suspense } from 'react';
22

3+
import MonacoQueryField from './MonacoQueryField';
34
import { Props } from './MonacoQueryFieldProps';
45

5-
const Field = React.lazy(() => import(/* webpackChunkName: "prom-query-field" */ './MonacoQueryField'));
6+
// const Field = React.lazy(() => import('./MonacoQueryField'));
67

78
export const MonacoQueryFieldLazy = (props: Props) => {
89
return (
910
<Suspense fallback={null}>
10-
<Field {...props} />
11+
<MonacoQueryField {...props} />
1112
</Suspense>
1213
);
1314
};

0 commit comments

Comments
 (0)