@graphql-codegen/client-preset-swc-plugin
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@graphql-codegen/client-preset-swc-plugin", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A SWC plugin for https://the-guild.dev/graphql/codegen/plugins/presets/preset-client", | ||
@@ -14,3 +14,4 @@ "license": "MIT", | ||
"scripts": { | ||
"build-wasm": "cargo build --target wasm32-wasi --release && cp target/wasm32-wasi/release/swc_plugin.wasm ./" | ||
"build-wasm": "cargo build --target wasm32-wasi --release && cp target/wasm32-wasi/release/swc_plugin.wasm ./", | ||
"debug": "cargo build --target wasm32-wasi && cp target/wasm32-wasi/debug/swc_plugin.wasm ./" | ||
}, | ||
@@ -17,0 +18,0 @@ "homepage": "https://the-guild.dev/graphql/codegen/plugins/presets/preset-client", |
@@ -17,16 +17,18 @@ # `@graphql-codegen/client-preset-swc-plugin` | ||
#### `.swrc` | ||
#### Vite | ||
```json5 | ||
{ | ||
// ... | ||
jsc: { | ||
// ... | ||
experimental: { | ||
```ts | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react-swc' | ||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [ | ||
react({ | ||
plugins: [ | ||
['@graphql-codegen/client-preset-swc-plugin', { artifactDirectory: './src/gql', gqlTagName: 'graphql' }] | ||
] | ||
} | ||
} | ||
} | ||
}) | ||
] | ||
}) | ||
``` | ||
@@ -47,2 +49,18 @@ | ||
#### `.swcrc` | ||
```json5 | ||
{ | ||
// ... | ||
jsc: { | ||
// ... | ||
experimental: { | ||
plugins: [ | ||
['@graphql-codegen/client-preset-swc-plugin', { artifactDirectory: './src/gql', gqlTagName: 'graphql' }] | ||
] | ||
} | ||
} | ||
} | ||
``` | ||
### Release | ||
@@ -49,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
729534
72