facebook / facebook/relay

babel-plugin-relay should support ecmascript module importing

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

Description

When using `babel-plugin-relay`, `graphql` template tag calls are converted into a function that uses `require` to load another file.

It would be nice to be able to opt-in to using an ECMAScript module-friendly `import` statement rather than relying on the commonjs `require`.

This would ideally make it easier to integrate into tools like `rollup`.

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.