Package Exports
- vite-plugin-graphql-codegen
- vite-plugin-graphql-codegen/dist/index.js
- vite-plugin-graphql-codegen/dist/vite-plugin-graphql-codegen.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vite-plugin-graphql-codegen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vite Plugin GraphQL Codegen
Experimental zero-config vite plugin that uses the vite file watcher to run graphql codegen programmatically without needing to start a separate watcher.
Setup GraphQL Codegen
Installation instructions found here. Optional if already set up in project.
Install
# npm
npm i -D vite-plugin-graphql-codegen
# yarn
yarn add -D vite-plugin-graphql-codegenInitialize
# vite.config.ts
import { defineConfig } from 'vite';
import codegen from 'vite-plugin-graphql-codegen';
export default defineConfig({
plugins: [
codegen()
],
});Project bootstrapped with TSDX.