hronro / vite-plugin-graphql

a Vite plugin for loading GraphQL files
18 stars 6 forks source link

Difference from @rollup/plugin-graphql #3

Open IanVS opened 3 years ago

IanVS commented 3 years ago

Hello, I was looking for a way to import graphql files in vite, and came across both this plugin and @rollup/plugin-graphql. Since vite can use rollup plugins, I was wondering if you could explain why you created a special vite version, and whether it does anything differently from the rollup plugin.

fanckush commented 3 years ago

it seems like it's pretty much the same thing

abitrolly commented 1 year ago

This plugin seems dead and is giving dependency errors with npm 7.

npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^1.0.0-beta.11 || ^1.0.0" from vite-plugin-graphql@0.1.0
npm ERR! node_modules/vite-plugin-graphql
npm ERR!   dev vite-plugin-graphql@"^0.1.0" from the root project