Closed asonnleitner closed 4 months ago
Thank you so much! I tested it locally and it works perfectly. I'm going to merge this as is and then see if it would be possible to reuse it to also handle the "automatic inlining", which I've now implemented in a (probably) not very efficient way.
…-import dependency
gather-fragment-imports.ts
to fetch and parse all direct and transitive imports from the source.inline-imports.ts
to inline import statements within GraphQL files.match-import.ts
to match import statements in GraphQL files.@graphql-fragment-import/lib
by implementing custom fragment import logic.inlineFragments
function to utilize the newinlineImportsWithLineToImports
.package-lock.json
andpackage.json
to reflect these changes.The new implementation provides more control over the fragment import process and reduces external dependencies.