facebook / facebook/relay

babel-plugin-relay and relay-compiler are not compatible with ES6 modules

Open
#2,445 10 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

The output of using `babel-plugin-relay` uses `require`, and the output of `relay-compiler` uses `module.exports`.

I'd like to request that there be an option to use ES6 `import` statements instead of `require` and that `relay-compiler` output ES6 modules.

TIA.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.