Yprox-CLI should stay light and simple, so I decided to remove the webpack
handler in favour of the rollup
handler.
You have 4 solutions :
- Use the
rollup
handler - Use Webpack Encore if you are building a Symfony application
- Use vue-cli if you are building a Single Page Application
- Use webpack and webpack-cli
.graphql
files are now imported as ES5 modules. You can now use apollo-client
.
If you don't want to, you can still send plain-text GraphQL query like that:
// apiInterface.js
// Change this:
formData.append('query', query);
// To this:
import { print as printQuery } from 'graphql/language/printer'
formData.append('query', printQuery(query));