UNPKG

844 BPlain TextView Raw
1/**
2 * Copyright (c) 2021 GraphQL Contributors.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7import 'regenerator-runtime/runtime';
8
9import { createGraphiQLFetcher } from '@graphiql/toolkit';
10
11import './css/app.css';
12import './css/codemirror.css';
13import './css/foldgutter.css';
14import './css/info.css';
15import './css/jump.css';
16import './css/lint.css';
17import './css/loading.css';
18import './css/show-hint.css';
19
20import './css/doc-explorer.css';
21import './css/history.css';
22
23import { GraphiQL } from './components/GraphiQL';
24// add the static function here for CDN only. otherwise, doing this in the component could
25// add unwanted dependencies to the bundle.
26// @ts-expect-error
27GraphiQL.createFetcher = createGraphiQLFetcher;
28
29export default GraphiQL;