Skip to content

Commit

Permalink
add exports field to support Node.js ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Jul 28, 2021
1 parent 6a5f51f commit 858ccbd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
"types": "index.d.ts",
"sideEffects": false,
"homepage": "https://github.com/graphql/graphql-js",
"exports": {
".": {
"require": "./index.js",
"import": "./index.mjs"
},
"./package.json": {
"require": "./package.json",
"import": "./package.json"
},
"./*": {
"require": "./*.js",
"import": "./*.mjs"
}
},
"bugs": {
"url": "https://github.com/graphql/graphql-js/issues"
},
Expand Down

0 comments on commit 858ccbd

Please sign in to comment.