Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit a90deda

Browse files
authored
[README] Add link to babel ES module transform.
Related to #40.
1 parent bdbc0e2 commit a90deda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ react_relay_1.createFragmentContainer(MyComponent, react_relay_1.graphql `
6262

6363
…and this makes it impossible for `babel-plugin-relay` to find the locations where the `graphql` function is being used.
6464

65+
Note that this does mean you need to configure Babel to transform the ES module `import` and `export` statements, by using the [`babel-plugin-transform-es2015-modules-commonjs`](https://babeljs.io/docs/plugins/transform-es2015-modules-commonjs/) transform plugin, if you’re not already.
66+
6567
## Examples
6668

6769
You can find a copy of the Relay

0 commit comments

Comments
 (0)