Skip to content

Commit 0ac9fa0

Browse files
authored
fix: graphiql non-relative import issues (#1534) fixes #1530
1 parent ce926bb commit 0ac9fa0

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

packages/graphiql/src/components/HistoryQuery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import React from 'react';
9-
import { QueryStoreItem } from 'src/utility/QueryStore';
9+
import { QueryStoreItem } from '../utility/QueryStore';
1010

1111
export type HandleEditLabelFn = (
1212
query?: string,

packages/graphiql/src/components/QueryEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import MD from 'markdown-it';
1212
import { normalizeWhitespace } from '../utility/normalizeWhitespace';
1313
import onHasCompletion from '../utility/onHasCompletion';
1414
import commonKeys from '../utility/commonKeys';
15-
import { SizerComponent } from 'src/utility/CodeMirrorSizer';
15+
import { SizerComponent } from '../utility/CodeMirrorSizer';
1616

1717
const md = new MD();
1818
const AUTO_COMPLETE_AFTER_KEY = /^[a-zA-Z0-9_@(]$/;

packages/graphiql/src/new-components/Toolbar/Tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @jsx jsx */
22
import { jsx } from 'theme-ui';
33
import WithDividers from './support/WithDividers';
4-
import { ReactNodeLike } from 'src/types';
4+
import { ReactNodeLike } from '../../types';
55

66
export type TabProps = { active: boolean } & React.DetailedHTMLProps<
77
React.ButtonHTMLAttributes<HTMLButtonElement>,

packages/graphiql/src/new-components/themes/decorators.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { ReactNodeLike } from 'src/types';
2+
import { ReactNodeLike } from '../../types';
33

44
const styles = {
55
maxWidth: '60em',

packages/graphiql/src/new-components/themes/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Maybe, ReactNodeLike } from 'src/types';
1+
import { Maybe, ReactNodeLike } from '../../types';
22

33
export type Color = string;
44
export type Colors = {

packages/graphiql/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"outDir": "./dist",
66
"composite": true,
77
"jsx": "react",
8-
"baseUrl": ".",
98
"target": "es5",
109
"strictPropertyInitialization": false
1110
},

0 commit comments

Comments
 (0)