+8
.changeset/nervous-beds-battle.md
+8
.changeset/nervous-beds-battle.md
···
···+Replace `graphql/utilities/buildClientSchema.mjs` with a custom-tailored, lighter implementation+built into `@urql/exchange-graphcache`. This will appear to increase its size by about `0.2kB gzip`+but will actually save around `8.5kB gzip` to `9.4kB gzip` in any production bundle by using less of
+1
exchanges/graphcache/src/ast/index.ts
+1
exchanges/graphcache/src/ast/index.ts
+107
exchanges/graphcache/src/ast/schema.ts
+107
exchanges/graphcache/src/ast/schema.ts
···
···
+2
-1
exchanges/graphcache/src/ast/schemaPredicates.test.ts
+2
-1
exchanges/graphcache/src/ast/schemaPredicates.test.ts
+76
-92
exchanges/graphcache/src/ast/schemaPredicates.ts
+76
-92
exchanges/graphcache/src/ast/schemaPredicates.ts
······························-`Invalid optimistic mutation field: \`${mutation}\` is not a mutation field in the defined schema, but the \`optimistic\` option is referencing it.`,
······························+`Invalid optimistic mutation field: \`${mutation}\` is not a mutation field in the defined schema, but the \`optimistic\` option is referencing it.`,
+18
-20
exchanges/graphcache/src/store/store.ts
+18
-20
exchanges/graphcache/src/store/store.ts
···············
···············