-
Notifications
You must be signed in to change notification settings - Fork 1.8k
dynamically import monaco-editor and monaco-graphql #4071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+424
−340
Merged
Changes from 75 commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
db08483
upd
dimaMachina d60f43b
upd
dimaMachina 3e77a21
upd next.js
dimaMachina 0dcb565
upd
dimaMachina c0dc5d2
upd
dimaMachina c844ca2
upd
dimaMachina 5d54aaf
upd
dimaMachina 085ede6
upd
dimaMachina dcfbe07
upd
dimaMachina 952317c
upd
dimaMachina 1b9c683
upd
dimaMachina 30f2c9f
upd
dimaMachina 016b11f
upd
dimaMachina f819731
upd
dimaMachina 13ffc92
upd
dimaMachina 8bfc621
upd
dimaMachina bd2ebed
Merge branch 'main' into react-router-graphiql
dimaMachina 4131d6e
upd
dimaMachina 6da5710
upd
dimaMachina 6921f3e
upd
dimaMachina f9565c7
upd
dimaMachina cce9c61
upd
dimaMachina 3a9b4f2
upd
dimaMachina a845b6e
upd
dimaMachina 75d408b
upd
dimaMachina 5b9b251
upd
dimaMachina 04da1ce
make monaco nullable
dimaMachina 61c90cc
all right
dimaMachina 7be0599
all right
dimaMachina de21435
all right
dimaMachina 49f1ef9
upd
dimaMachina 78f8890
changeset
dimaMachina 597c4c3
upd
dimaMachina 8ce2575
upd yarn
dimaMachina c8b119d
comment
dimaMachina 94884cf
Update packages/graphiql-react/src/utility/monaco-ssr.ts
dimaMachina 4cc5e93
upd
dimaMachina 14778bb
upd
dimaMachina f8291c4
upd
dimaMachina 4c956f4
upd changeset
dimaMachina b251edf
fix build
dimaMachina 05fed09
prettier
dimaMachina e892092
update README.md
dimaMachina cf24a84
fix typecheck
dimaMachina 382b920
skip temp
dimaMachina 733a7b1
try
dimaMachina eb1663b
remove “Module '@emotion/is-prop-valid' not found” warning emitted by…
dimaMachina a5bef92
upd
dimaMachina 9a63885
upd
dimaMachina 09419e5
upd
dimaMachina 7d5a4c2
try this
dimaMachina c43a086
use lite
dimaMachina 66496da
try
dimaMachina 3eb9601
try `monaco-graphql/esm/monaco-editor`
dimaMachina 74a6f93
try editor.api.js
dimaMachina 43f58f2
try import in monaco
dimaMachina 6dad0e1
and now
dimaMachina f9344d0
upd
dimaMachina 6df4604
upd yarn
dimaMachina 2e21fce
try
dimaMachina 3a806e3
cleanup
dimaMachina 6f83ee8
cleanup
dimaMachina 025f223
rm
dimaMachina 6c4db9f
rm editor.api.js import
dimaMachina 94a72be
upd
dimaMachina 6768d85
specify ext for monaco-graphql, because it fails on esm.sh
dimaMachina d7e1c62
try
dimaMachina d904653
try
dimaMachina 0b5ee89
Merge branch 'main' into react-router-graphiql
dimaMachina 4956732
cleanup
dimaMachina 089bb1f
cleanup
dimaMachina 454af65
cleanup
dimaMachina 796a044
fix vitest
dimaMachina 670578f
prettier
dimaMachina 2998cb6
increase timeout
dimaMachina 46ca064
increase more timeout
dimaMachina 7087491
more timeout
dimaMachina 592fc3e
increase default query timeout for 6s
dimaMachina 8b25eb3
Update .changeset/chilled-peaches-wonder.md
dimaMachina 0133218
for 7s
dimaMachina 064893b
for 8s
dimaMachina 3142b73
Update .changeset/chilled-peaches-wonder.md
dimaMachina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
'@graphiql/react': patch | ||
'monaco-graphql': patch | ||
'graphql-language-service': minor | ||
'graphiql': minor | ||
--- | ||
|
||
feat(graphql-language-service): export `getContextAtPosition` | ||
feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` | ||
|
||
When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: | ||
|
||
```diff | ||
-import dynamic from 'next/dynamic' | ||
-const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { | ||
- ssr: false | ||
-}) | ||
+import { GraphiQL } from 'graphiql' | ||
``` | ||
|
||
When using GraphiQL with [React Router’s SSR mode](https://reactrouter.com/api/framework-conventions/react-router.config.ts#ssr), | ||
you no longer need to mark the GraphiQL component as a [client module](https://reactrouter.com/api/framework-conventions/client-modules) | ||
by adding `.client` to the file name. | ||
dimaMachina marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { Metadata } from 'next'; | ||
|
||
export { GraphiQLPage as default } from './graphiql'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'GraphiQL Next.js Example', | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.