Replies: 2 comments 1 reply
-
First of all, everything you are suggesting here except If this is really about importing a GraphQL AST, you can still use a plugin that outputs the AST and specify in your The current gql pipeline resolves imports, so it's not exactly the same as just importing the file's contents as a string. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
we have
import a from 'url:a.png'
;then why not
import b from 'text:b.txt'
andimport c from 'buffer:c.bin'
Then we can
import gql_text from 'text:schema.gql'
. I know, I know, we have make the imported graphql to be just string rather than the ast.But it's weired. If I have told parcel the suffix of the file is
.gql
, why I just get a string. If I just need a string, why to tell parcel the suffix of the file.We can:
Beta Was this translation helpful? Give feedback.
All reactions