Crates.io | swc-plugin-graphql-codegen-client-preset-optimizer-test |
lib.rs | swc-plugin-graphql-codegen-client-preset-optimizer-test |
version | 0.1.0 |
source | src |
created_at | 2022-12-21 00:03:44.973381 |
updated_at | 2022-12-21 00:03:44.973381 |
description | SWC plugin for https://the-guild.dev/graphql/codegen/plugins/presets/preset-client |
homepage | |
repository | |
max_upload_size | |
id | 742717 |
size | 17,259 |
https://the-guild.dev/graphql/codegen/plugins/presets/preset-client https://github.dev/dotansimha/graphql-code-generator
https://rustdoc.swc.rs/swc_core/ecma/ast/struct.CallExpr.html
https://swc.rs/docs/plugin/ecmascript/cheatsheet
https://github.com/Tinkoff/tramvai/blob/99c6a098c637c6e7367a4fb864291d0c546f00e6/packages/swc/plugins/create_token_pure/src/lib.rs https://github.com/swc-project/plugins
module.exports = { ..., "jsc": { "experimental": { "plugins": [ [ require.resolve("./path/to/your-modified-plugin.wasm"), { ..your options } ] ] } }, ... }
//@ts-ignore
import gql from 'gql-tag';
//@ts-ignore
const A = gql(/* GraphQL */ `
query A {
a
}
`);
//@ts-ignore
const B = gql(/* GraphQL */ `
query B {
b
}
`);
//@ts-ignore
const C = gql(/* GraphQL */ `
fragment C on Query {
c
}
`);