Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / dist / .plugins / graphql.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * @todo replace with
 * https://github.com/gajus/babel-plugin-graphql-tag
 */
function graphqlPlugin(config, options) {
    // @note would need to use both this and raw, bah
    const graphlSchemaLoader = {
        test: /\.(graphql|gql)$/,
        exclude: /node_modules/,
        // loader: require.resolve('graphql-tag/loader'),
        // loader: 'graphql-import-loader'
        // loader: require.resolve('./gql/loader'),
        loader: require.resolve('@skava/webpack-loader-graphql/loader.js'),
    };
    config.module.rules.push(graphlSchemaLoader);
    // const raw = {
    //   test: /\.graphql$/,
    //   loader: 'raw-loader'
    // }
    // config.module.rules.push(raw)
}
exports.default = graphqlPlugin;
//# sourceMappingURL=graphql.js.map