babel-plugin-relay should support ecmascript module importing
Open
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
Assessment
This issue has not been assessed yet.