File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,11 @@ tool is built with GraphQL.js!
131
131
Building a project using GraphQL.js with [ webpack] ( https://webpack.js.org ) or
132
132
[ rollup] ( https://github.com/rollup/rollup ) should just work and only include
133
133
the portions of the library you use. This works because GraphQL.js is distributed
134
- with both CommonJS (` require() ` ) and ESModule (` import ` ) files. Ensure that any
135
- custom build configurations look for ` .mjs ` files!
134
+ with both CommonJS (` require() ` ) and ESModule (` import ` ) files. The ` exports `
135
+ map within the project ` package.json ` should direct runtimes and bundlers to
136
+ the appropriate files. Tools that do not support ` exports ` will find the CommonJS
137
+ and ESModule builds side by side, with the CommonJS code packaged
138
+ in files with the ` .js ` extension and the ESModule build within ` .mjs ` files.
136
139
137
140
## Contributing
138
141
You can’t perform that action at this time.
0 commit comments