graphql-tag
Advanced tools
Comparing version 0.1.15 to 0.1.16
# Change log | ||
### v0.1.16 | ||
- Add caching to Webpack loader. [PR #16](https://github.com/apollostack/graphql-tag/pull/16) | ||
### v0.1.15 | ||
@@ -4,0 +8,0 @@ |
const gql = require('./'); | ||
module.exports = source => `module.exports = ${JSON.stringify(gql`${source}`)};`; | ||
module.exports = function(source) { | ||
this.cacheable(); | ||
return `module.exports = ${JSON.stringify(gql`${source}`)};`; | ||
}; |
{ | ||
"name": "graphql-tag", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,3 +69,3 @@ # graphql-tag | ||
This package also includes a [webpack loader](https://webpack.github.io/docs/loaders.html). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side, optimizes bundle size and enable queries to be separated from script over `.graphql` files. | ||
This package also includes a [webpack loader](https://webpack.github.io/docs/loaders.html). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side and enable queries to be separated from script over `.graphql` files. | ||
@@ -72,0 +72,0 @@ ```js |
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
186652
5313