babel-plugin-import-graphql
babel-plugin-import-graphql copied to clipboard
Enables import syntax for .graphql and .gql files
Absolute paths configuration: ```json // .babelrc { "plugins": [ "import-graphql" ] } // jsconfig.json { "compilerOptions": { "baseUrl": "." } } ``` Import code: ```js import {qPosts} from 'schema/post.graphql'; ```...
Bumps [async](https://github.com/caolan/async) from 2.6.0 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) v2.6.3 Updated lodash to squelch a security warning (#1675) v2.6.2 Updated lodash...
When I try to import a graphql from a library, it gives the following error: ``` TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined ``` The...
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...
hi I want to import a graphql file. but for some reason i am getting error \node_modules\ts-node\src\index.ts:750 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: ⨯ Unable to compile TypeScript: src/index.ts:12:22 -...
When testing using Jest, I receive the following error when running `babel.transform`. I am using the test code defined in the README of this plugin. ```js import myImportedQuery from "./queries/productsQuery.graphql";...
Hi, what does the `runtime` option actually do? I tried it with `runtime` set to `true` and to `false` but it doesn't seem to change anything. The transpiled file has...
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2. Commits 523c5c7 2.2.2 7ecef07 Bump fstream to fix hardlink overwriting vulnerability 9fc84b9 Use {} for hardlink tracking instead of [] 15e59f1 Only track previously...