Skip to content

[@graphiql/react]: exclude peer dependencies and dependencies from bundle - #3228

Merged
dimaMachina merged 3 commits into
mainfrom
graphql-react-exclude-deps-from-bundle
Jun 15, 2023
Merged

dimaMachina merged 3 commits into
mainfrom
graphql-react-exclude-deps-from-bundle

Conversation

@dimaMachina

Copy link
Copy Markdown
Collaborator
before after
image image

also I renamed main/module entry to simple index

@changeset-bot

changeset-bot Bot commented Jun 14, 2023 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a997530

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@graphiql/react Patch
@graphiql/plugin-explorer Patch
graphiql Patch

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

@github-actions

Copy link
Copy Markdown
Contributor

The latest changes of this PR are not available as canary, since there are no linked changesets for this PR.

// Exclude peer dependencies and dependencies from bundle
...Object.keys(packageJSON.peerDependencies),
...Object.keys(packageJSON.dependencies).filter(
dependency => dependency !== 'codemirror',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we leave codemirror?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah there were some errors from graphiql without this filter, anyway we'll remove it with Monaco migration

@acao acao Jun 14, 2023 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 acao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much needed! i can sleep at night now, knowing that our users can security patch markdown-it for example

@dimaMachina
dimaMachina merged commit 67bf93a into main Jun 15, 2023
@dimaMachina
dimaMachina deleted the graphql-react-exclude-deps-from-bundle branch June 15, 2023 10:35
This was referenced Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants