-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[2] GraphiQL x Vite v5 #3679
[2] GraphiQL x Vite v5 #3679
Conversation
Co-authored-by: Ted Thibodeau Jr <[email protected]>
🦋 Changeset detectedLatest commit: 80bd1fe The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest changes of this PR are not available as canary, since there are no linked |
@@ -83,6 +83,7 @@ function getSchemaUrl() { | |||
// how you can customize GraphiQL by providing different values or | |||
// additional child elements. | |||
const root = ReactDOM.createRoot(document.getElementById('graphiql')); | |||
const graphqlVersion = GraphiQL.GraphQL.version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found how to easily get version of graphql-js
without importing package.json
or injecting code
lib: { | ||
entry: 'src/index.ts', | ||
fileName: 'index', | ||
formats: ['cjs', 'es'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need a bundle of cjs
version for the next major? or just keep esm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's quite a big step to get rid of cjs, if it doesn't cost you much to keep outputting cjs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with dropping cjs
we can bundle graphql-toolkit
to esm only too and fix #3668
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## graphiql-v4 #3679 +/- ##
============================================
Coverage 60.85% 60.85%
============================================
Files 121 121
Lines 5620 5620
Branches 1490 1490
============================================
Hits 3420 3420
Misses 1748 1748
Partials 452 452
|
closes #2925 #2371 #2638 #2184
I propose to cut v4 alpha release and include this PR and new tabs looks PR #3644
changed exports
graphiql/graphiql.js
removed non-minified umd bundlegraphiql/graphiql.min.js
=>graphiql/dist/index.umd.js
graphiql/graphiql.css
=>graphiql/style.css
(addedexports
field inpackage.json
)todos:
import 'graphiql/style.css';
[v4] update changeset for changed exports #3700