graphql-tag
Advanced tools
Comparing version 2.7.1 to 2.7.3
# Change log | ||
### v2.7.0 | ||
* Export DocumentNode in TypeScript via `graphql-js` [felixfbecker](https://github.com/felixfbecker) in [PR #141](https://github.com/apollographql/graphql-tag/pull/141) | ||
### v2.6.0 | ||
@@ -8,0 +4,0 @@ |
{ | ||
"name": "graphql-tag", | ||
"version": "2.7.1", | ||
"version": "2.7.3", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -5,0 +5,0 @@ "main": "./lib/graphql-tag.umd.js", |
@@ -75,2 +75,3 @@ # graphql-tag | ||
#### React Native, Next.js | ||
Additionally, in certain situations, preprocessing queries via the webpack loader is not possible. [babel-plugin-inline-import-graphql-ast](https://www.npmjs.com/package/babel-plugin-inline-import-graphql-ast) will allow one to import graphql files directly into your JavaScript by preprocessing GraphQL queries into ASTs at compile-time. | ||
@@ -81,3 +82,3 @@ | ||
import myImportedQuery from './productsQuery.graphql' | ||
class ProductsPage extends React.Component { | ||
@@ -88,2 +89,8 @@ ... | ||
#### Create-React-App | ||
`create-react-app@2.0.0` will [support the ability to preprocess queries](https://github.com/facebook/create-react-app/pull/3909) using `graphql-tag/loader` without the need to eject. | ||
If you're using an older version of `create-react-app`, check out [react-app-rewire-inline-import-graphql-ast](https://www.npmjs.com/package/react-app-rewire-inline-import-graphql-ast) to preprocess queries without needing to eject. | ||
### Webpack preprocessing with `graphql-tag/loader` | ||
@@ -90,0 +97,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77401
149