Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 961 Bytes

UPGRADE-3.0.md

File metadata and controls

30 lines (19 loc) · 961 Bytes

UPGRADE FROM 2.X TO 3.0

No more webpack

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 :

GraphQL usage inside Rollup (#147)

.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));