babel-plugin-import-graphql
babel-plugin-import-graphql copied to clipboard
Plugin makes it impossible to import .gql.ts and .graphql.ts files
In order to import a file with .gql.ts extension, you would omit the .ts
part in the import statement.
Since the plugin looks at importPath
rather than the name of the actual file, it will handle it and import it as graphql, which will fail (assuming it is a ts file).
Attaching a patch that would fix it, but of course not sure if this has other implications.