This repository has been archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Using reason-apollo in node.js #154
Comments
It should depend on your
it should compile to |
We are using a mono repo with yarn so our client side and sever side node_modules end up in the same directory when in dev. Would commonjs work for both? |
You can make it work for both:
I would opt for the first option, to output ESM and to transpile the server side code with babel. |
package-specs actually accepts an array so you can tell bsb to output commonjs and es6 at the same time (but double compilation speed) |
What solution did you pick @studious ? |
All of our reason applications use |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We use reason-apollo in a mono-repo when developing.
We started with client side ReasonReact code but have now started adding some server side graphql queries. This is breaking due to reason-apollo compiling with
import *
style notation.What is the best approach for solving this?
The text was updated successfully, but these errors were encountered: