Skip to content

docs: update dual-build information within README #4472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2025
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