Skip to content

Commit

Permalink
fix: fix server side rendering by using type only codemirror import
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillich committed Jun 7, 2020
1 parent 8541250 commit 8b02fa8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/graphiql/src/components/HeaderEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as CM from 'codemirror';
import type * as CM from 'codemirror';
import 'codemirror/addon/hint/show-hint';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/src/components/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React from 'react';
import * as CM from 'codemirror';
import type * as CM from 'codemirror';
import { GraphQLSchema, GraphQLType } from 'graphql';
import MD from 'markdown-it';
import { normalizeWhitespace } from '../utility/normalizeWhitespace';
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/src/components/ResultViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { Component, FunctionComponent } from 'react';
import * as CM from 'codemirror';
import type * as CM from 'codemirror';
import ReactDOM from 'react-dom';
import commonKeys from '../utility/commonKeys';
import { SizerComponent } from '../utility/CodeMirrorSizer';
Expand Down
2 changes: 1 addition & 1 deletion packages/graphiql/src/components/VariableEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
import { GraphQLType } from 'graphql';
import * as CM from 'codemirror';
import type * as CM from 'codemirror';
import 'codemirror/addon/hint/show-hint';
import React from 'react';

Expand Down

0 comments on commit 8b02fa8

Please sign in to comment.