Skip to content

import graphql from graphql/index.js#9936

Merged
emmatown merged 1 commit into
mainfrom
push-vxuvtomrnnnn
Jul 24, 2026
Merged

import graphql from graphql/index.js#9936
emmatown merged 1 commit into
mainfrom
push-vxuvtomrnnnn

Conversation

@emmatown

Copy link
Copy Markdown
Member

This is for #9929 to work around Vitest loading the ESM in Node.js when it shouldn't do that, I was initially thinking a workaround wouldn't be great since consumers would also have to do some workaround but really this will just be retaining the status quo since consumers doing "type": "module" in their projects would already require some workaround for this. (I believe "type": "module" for a consumer would be broken at the moment anyway since we emit CJS without a .cjs in .keystone).

In graphql@17, I believe we'll have to revert this since it uses an exports field. graphql@17 also resolves this anyway so that's a non-issue.

@emmatown
emmatown merged commit d31a325 into main Jul 24, 2026
54 checks passed
@emmatown
emmatown deleted the push-vxuvtomrnnnn branch July 24, 2026 00:52
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.

1 participant