Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay Support in Rust Compiler #33240

Merged
merged 46 commits into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2aaa426
Add support for relay compiler imports
tbezman Jan 12, 2022
f794fcf
Add relay deps for integration tests
tbezman Jan 12, 2022
6c966d2
Add integration test for Relay SWC Compiler
tbezman Jan 12, 2022
8ee3e6c
More exhaustive tests
tbezman Jan 13, 2022
46e2534
Remove dead code
tbezman Jan 13, 2022
66e6859
Pass through relay config from next config
tbezman Jan 13, 2022
eb88c71
Run relay compiler when running integration test
tbezman Jan 13, 2022
4ef5e23
Remove more dead code
tbezman Jan 13, 2022
90d3bce
Merge branch 'canary' into relay-plugin
tbezman Jan 13, 2022
718929c
Remove useless to_string and String::from
tbezman Jan 14, 2022
6d03ee9
Remove clone in favor of borrowing
tbezman Jan 14, 2022
523bc25
Use borrow instead of &*
tbezman Jan 14, 2022
61826a4
Removed more clones
tbezman Jan 14, 2022
3fe7119
Merge branch 'relay-plugin' of github.com:tbezman/next.js into relay-…
tbezman Jan 14, 2022
eb7daa1
Add relay and remove parking lot core since it doesn't seem like it's…
tbezman Jan 14, 2022
4f75ae5
Switch to relay.config.js
tbezman Jan 15, 2022
46f46f2
Add relay packages so we can resolve the artifact using their code
tbezman Jan 15, 2022
400def3
Use relay to determine artifact directory
tbezman Jan 15, 2022
b6d924f
Remove artifact dir test since that's handled by the relay packages
tbezman Jan 15, 2022
d419ba0
Update tests to use right cwd
tbezman Jan 15, 2022
3830a8d
Add support for fragments
tbezman Jan 15, 2022
5fa72cf
Merge remote-tracking branch 'upstream/canary' into relay-plugin
tbezman Jan 15, 2022
cd6ed9c
Added the copy trait
tbezman Jan 15, 2022
f7cfd1c
Address latest kdy1 feedback
tbezman Jan 16, 2022
fee2e11
Remove some unused imports
tbezman Jan 16, 2022
2b53fa1
Create new integration test for multi project configs
tbezman Jan 17, 2022
5612526
Add support for multi project configs and error handling
tbezman Jan 17, 2022
244a4da
Update fixture to support new API
tbezman Jan 17, 2022
ba4e846
Merge remote-tracking branch 'upstream/canary' into relay-plugin
tbezman Jan 17, 2022
8ba0998
Remove describe.only
tbezman Jan 17, 2022
8782671
Bring back parking lot and bump version to avoid conflicts
tbezman Jan 17, 2022
8343e17
Address latest kdy1 feedback
tbezman Jan 17, 2022
686ff01
Add note about Relay to the docs
timneutkens Jan 17, 2022
27057e5
Fix unit tests
tbezman Jan 18, 2022
acea05f
Switch to use a regex :)
tbezman Jan 18, 2022
85ac72c
Add support for subscription in regex
tbezman Jan 18, 2022
7d35873
Address kdy1 feedback
tbezman Jan 19, 2022
d24ae71
Don't include Relay when targeting wasm
tbezman Jan 22, 2022
5f3f298
Merge branch 'canary' of https://github.com/vercel/next.js into relay…
tbezman Jan 22, 2022
aa0f676
Update packages/next-swc/crates/core/src/relay.rs
tbezman Jan 26, 2022
4a4a5b6
Update packages/next-swc/crates/core/src/relay.rs
tbezman Jan 26, 2022
f6cc9d7
Update packages/next-swc/crates/core/src/relay.rs
tbezman Jan 26, 2022
fffa3e1
Merge remote-tracking branch 'upstream/canary' into relay-plugin
tbezman Jan 26, 2022
b5f89bc
Add better docs for CouldNotCategorize error
tbezman Jan 26, 2022
1682ac3
Add relay: false to full test suite
tbezman Jan 26, 2022
464dd97
Prettier fix
tbezman Jan 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/advanced-features/compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,19 @@ const customJestConfig = {
module.exports = createJestConfig(customJestConfig)
```

### Relay

To enable [Relay](https://relay.dev/) support:

```js
// next.config.js
module.exports = {
experimental: {
relay: true,
},
}
```

### Remove React Properties

Allows to remove JSX properties. This is often used for testing. Similar to `babel-plugin-react-remove-properties`.
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@types/http-proxy": "1.17.3",
"@types/jest": "24.0.13",
"@types/node": "13.11.0",
"@types/relay-runtime": "13.0.0",
"@types/selenium-webdriver": "4.0.15",
"@types/sharp": "0.29.3",
"@types/string-hash": "1.1.1",
Expand Down Expand Up @@ -145,6 +146,8 @@
"react-dom": "17.0.2",
"react-dom-18": "npm:react-dom@18.0.0-rc.0",
"react-ssr-prepass": "1.0.8",
"relay-compiler": "13.0.1",
"relay-runtime": "13.0.1",
timneutkens marked this conversation as resolved.
Show resolved Hide resolved
"release": "6.3.0",
"request-promise-core": "1.1.2",
"resolve-from": "5.0.0",
Expand Down
Loading