Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Relay projects without
artifactDirectory
(#33918)
* update plugin * Update the test * remove dbg * Use pages_dir in Relay * copy edits * cargo test Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information
Showing
7 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
test/integration/relay-graphql-swc-single-project/queries/pagesQuery.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { graphql } from 'relay-runtime' | ||
|
||
export default graphql` | ||
query pagesQuery { | ||
greeting | ||
} | ||
` |
1 change: 0 additions & 1 deletion
1
test/integration/relay-graphql-swc-single-project/relay.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
module.exports = { | ||
src: './pages', | ||
schema: './schema.graphql', | ||
artifactDirectory: './__generated__', | ||
language: 'typescript', | ||
} |