This repository has been archived by the owner on May 10, 2021. It is now read-only.
Releases: valu-digital/babel-gql
Releases · valu-digital/babel-gql
v0.1.5
v0.1.4
Fix active
option on QueryManager class
v0.1.1
- Export ParsedGQLTag
- Add customFetch support
v0.1.0
Breaking changes
You must now configure a Webpack plugin too.
Add BabelGQLWebpackPlugin
to webpack.config.js
const { BabelGQLWebpackPlugin } = require("babel-gql/plugin");
module.exports = {
// ...
plugins: [
new BabelGQLWebpackPlugin({
// the directory where persisted query files will be written to
target: ".queries",
}),
],
};
If you use @valu/webpack-config:
// REQUIRES v0.12.0 of @valu/webpack-confi or later
const { createWebpackConfig } = require("@valu/webpack-config");
const { BabelGQLWebpackPlugin } = require("babel-gql/plugin");
module.exports = createWebpackConfig({
babelPlugins: ["babel-gql/plugin"],
webpackPlugins: [
new BabelGQLWebpackPlugin({
target: ".queries",
}),
],
});
v0.0.6
Pass fetch options properly in dev too
v0.0.5
Add fetchOptions
support to request()
Example
request("/graphql", {
query: getPostsQuery,
variables: {
first: 10,
},
fetchOptions: {
credentials: "omit",
headers: {
"x-custom-header": "test",
},
},
});