evenchange4 / graphql.macro

Compile GraphQL AST at build-time with babel-plugin-macros.
MIT License
239 stars 21 forks source link

Any hopes or suggestions for use with Rollup? #91

Open frederikhors opened 5 years ago

frederikhors commented 5 years ago

Any hopes or suggestions for use with Rollup?

FezVrasta commented 5 years ago

What's the issue with Rollup? I would expect it to work as long you have Babel properly configured.

frederikhors commented 5 years ago

I'm experimenting with Svelte 3 and svelte-apollo.

Then I found this https://www.apollographql.com/docs/react/recipes/babel.

Do you think it would be possible to build/compile ahead-of-time the graphql queries using svelte/template with something like babel-macro in create-react-app world with react-apollo?

I found nothing with rollup (I'm totally new with it). And the svelte-template project didn't use Babel for bundling.