relay icon indicating copy to clipboard operation
relay copied to clipboard

[babel-plugin-relay] Feature Request: Multiple project support like swc-relay

Open vip30 opened this issue 1 year ago • 0 comments

The config is just like what we did in swc-relay https://github.com/vercel/next.js/issues/64890

  "relay": {
    "root": "..",
    "sources": {
      "shared": "shared",
      "web-app": "web-app"
    },
    "projects": {
      "shared": {
        "language": "typescript",
        "output": "shared/__generated__",
        "schema": "shared/schema.graphql"
      },
      "web-app": {
        "base": "shared",
        "language": "typescript",
        "output": "web-app/__generated__",
        "schema": "shared/schema.graphql"
      }
    }
  },

Currently, it cannot have any workaround to make it happen. I would like to use multiple project config for relay.

Thanks

vip30 avatar Sep 09 '24 07:09 vip30