Skip to content

Commit 66eb7b3

Browse files
committed
MD
1 parent 6171965 commit 66eb7b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/pages/upgrade-guides/v16-v17.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ The v17 release drops support for end-of-life versions of Node.JS, retaining sup
1818

1919
## ESM and conditional exports
2020

21-
Earlier versions of GraphQL.js shipped dual builds for CommonJS and ESM, with ESM "*.mjs" files sitting alongside CommonJS "*.js" files.
21+
Earlier versions of GraphQL.js shipped dual builds for CommonJS and ESM, with ESM ".mjs" files sitting alongside CommonJS ".js" files.
2222
The ESM build was accessible via tooling recognizing the `module` field in `package.json`, while the CommonJS build was accessible via
23-
the "main" field. Unless configured carefully, this could sometimes lead to multiple copies of GraphQL.js being loaded in the same
23+
the `main` field. Unless configured carefully, this could sometimes lead to multiple copies of GraphQL.js being loaded in the same
2424
process, i.e. the dual-package hazard.
2525

2626
v17 enables access to the ESM build via the `exports` field in `package.json` in a scheme designed to avoid the dual-package hazard as

0 commit comments

Comments
 (0)