0.1.0 |
|
---|
#16 in #preset
16KB
264 lines
Links
Graphql-Codegen
https://the-guild.dev/graphql/codegen/plugins/presets/preset-client https://github.dev/dotansimha/graphql-code-generator
SWC
https://rustdoc.swc.rs/swc_core/ecma/ast/struct.CallExpr.html
https://swc.rs/docs/plugin/ecmascript/cheatsheet
Examples
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
}
`);
Dependencies
~17–27MB
~429K SLoC