Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-codegen/client-preset-swc-plugin

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/client-preset-swc-plugin - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

package.json
{
"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",

38

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc