Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 720 Bytes

kind-taxis-refuse.md

File metadata and controls

22 lines (19 loc) · 720 Bytes
@graphql-codegen/cli @graphql-codegen/visitor-plugin-common @graphql-codegen/gql-tag-operations @graphql-codegen/near-operation-file-preset @graphql-codegen/plugin-helpers
minor
minor
minor
minor
minor

Add new flag to emit legacy common js imports. Default it will be true this way it ensure that generated code works with non-compliant bundlers.

You can use the option in your config:

schema: 'schema.graphql'
 documents:
   - 'src/**/*.graphql'
 emitLegacyCommonJSImports: true

Alternative you can use the CLI to set this option:

 $ codegen --config-file=config.yml --emit-legacy-common-js-imports