Skip to content

Commit 343dd59

Browse files
authored
[v4] remove graphiql default export (#3706)
* aa * aa * polish
1 parent 8ff87d7 commit 343dd59

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.changeset/gentle-bugs-mix.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'graphiql': major
3+
---
4+
5+
remove default export
6+
7+
## Migration
8+
9+
### Before
10+
11+
```jsx
12+
import GraphiQL from 'graphiql'
13+
```
14+
15+
### After
16+
17+
```jsx
18+
import { GraphiQL } from 'graphiql'
19+
```

packages/graphiql/src/index.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,4 @@ export type {
2323
} from './components/GraphiQL';
2424
export type { GraphiQLProviderProps } from '@graphiql/react';
2525

26-
export {
27-
GraphiQLInterface,
28-
GraphiQL,
29-
GraphiQL as default,
30-
} from './components/GraphiQL';
26+
export { GraphiQLInterface, GraphiQL } from './components/GraphiQL';

0 commit comments

Comments
 (0)