This is a fork of graphql-tools/webpack-loader with one additional option: supermassiveSDL. When set the following SDL file will be exported with supermassive-ready encoding:
Source SDL:
type Query {
foo: String
}
Loader output with supermassiveSDL=true:
var doc = JSON.parse('[{"types":{"Query":[2,{"foo":1}]}}]');
module.exports = doc;
When the option is disabled, exported value contains a regular graphql AST. When enabled, the option also doesn't affect graphql operations - they are still exported as AST. Only schema definitions are converted to supermassive encoding.
This is a fork of graphql-tools/webpack-loader with one additional option:
supermassiveSDL
. When set the following SDL file will be exported with supermassive-ready encoding:Source SDL:
Loader output with
supermassiveSDL=true
:When the option is disabled, exported value contains a regular graphql AST. When enabled, the option also doesn't affect graphql operations - they are still exported as AST. Only schema definitions are converted to supermassive encoding.