Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ tool is built with GraphQL.js!
Building a project using GraphQL.js with [webpack](https://webpack.js.org) or
[rollup](https://github.com/rollup/rollup) should just work and only include
the portions of the library you use. This works because GraphQL.js is distributed
with both CommonJS (`require()`) and ESModule (`import`) files. Ensure that any
custom build configurations look for `.mjs` files!
with both CommonJS (`require()`) and ESModule (`import`) files. The `exports`
map within the project `package.json` should direct runtimes and bundlers to
the appropriate files. Tools that do not support `exports` will find the CommonJS
and ESModule builds side by side, with the CommonJS code packaged
in files with the `.js` extension and the ESModule build within `.mjs` files.

## Contributing

Expand Down
Loading