Skip to content

Commit 7b337f3

Browse files
authored
Revert "Revert "Relay Support in Rust Compiler" (#33699)"
This reverts commit b5d4564.
1 parent 865a079 commit 7b337f3

File tree

35 files changed

+2424
-141
lines changed

35 files changed

+2424
-141
lines changed

docs/advanced-features/compiler.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ const customJestConfig = {
9494
module.exports = createJestConfig(customJestConfig)
9595
```
9696

97+
### Relay
98+
99+
To enable [Relay](https://relay.dev/) support:
100+
101+
```js
102+
// next.config.js
103+
module.exports = {
104+
experimental: {
105+
relay: true,
106+
},
107+
}
108+
```
109+
97110
### Remove React Properties
98111

99112
Allows to remove JSX properties. This is often used for testing. Similar to `babel-plugin-react-remove-properties`.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@types/http-proxy": "1.17.3",
6060
"@types/jest": "24.0.13",
6161
"@types/node": "13.11.0",
62+
"@types/relay-runtime": "13.0.0",
6263
"@types/selenium-webdriver": "4.0.15",
6364
"@types/sharp": "0.29.3",
6465
"@types/string-hash": "1.1.1",
@@ -145,6 +146,8 @@
145146
"react-dom": "17.0.2",
146147
"react-dom-18": "npm:react-dom@18.0.0-rc.0",
147148
"react-ssr-prepass": "1.0.8",
149+
"relay-compiler": "13.0.1",
150+
"relay-runtime": "13.0.1",
148151
"release": "6.3.0",
149152
"request-promise-core": "1.1.2",
150153
"resolve-from": "5.0.0",

0 commit comments

Comments
 (0)