Which packages are impacted by your issue?
@graphql-codegen/cli, @graphql-codegen/typed-document-node
Describe the bug
dedupeFragments options was removed here, causing fragments to appear twice on the document node (doc.loc?.source.body)
Your Example Website or App
https://codesandbox.io/p/devbox/inspiring-burnell-l7snd2?workspaceId=ws_3d3S1CmTc7BCJtbnRB7BQC
Steps to Reproduce the Bug or Issue
- go to https://codesandbox.io/p/devbox/inspiring-burnell-l7snd2?workspaceId=ws_3d3S1CmTc7BCJtbnRB7BQC
- run
npm run codegen && npm run print
- printing the doc body shows twice the same fragment
Expected behavior
fragments should be deduped
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
graphql version: [e.g. 16.3.0]
@graphql-codegen/* version(s): [e.g. 2.6.2]
Codegen Config File
No response
Additional context
No response