Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 540 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 540 Bytes

vite-plugin-graphql

Similar to graphql-tag/loader, but for vite.

Installation

npm i vite-plugin-graphql
yarn add vite-plugin-graphql
pnpm i vite-plugin-graphql

Usage

const graphqlPlugin = require('vite-plugin-graphql');

const config = {
  plugins: [graphqlPlugin],
};

Now all the files ends with .gql or .graphql will be handled by vite-plugin-graphql.