Repository navigation
[@graphiql/react]: exclude peer dependencies and dependencies from bundle - #3228
Conversation
🦋 Changeset detectedLatest commit: a997530 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
| // Exclude peer dependencies and dependencies from bundle | ||
| ...Object.keys(packageJSON.peerDependencies), | ||
| ...Object.keys(packageJSON.dependencies).filter( | ||
| dependency => dependency !== 'codemirror', |
There was a problem hiding this comment.
is there a reason we leave codemirror?
There was a problem hiding this comment.
yeah there were some errors from graphiql without this filter, anyway we'll remove it with Monaco migration
There was a problem hiding this comment.
I think when we replace webpack with vite in graphiql we can get rid of this beforehand. users have reported issues with not being able to control the codemirror version, and this isn't how the graphiql package worked before
acao
left a comment
There was a problem hiding this comment.
much needed! i can sleep at night now, knowing that our users can security patch markdown-it for example
also I renamed
main/moduleentry to simpleindex