Skip to content

Commit 858ccbd

Browse files
committed
add exports field to support Node.js ESM
1 parent 6a5f51f commit 858ccbd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

package.json

+14
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
"types": "index.d.ts",
1010
"sideEffects": false,
1111
"homepage": "https://github.com/graphql/graphql-js",
12+
"exports": {
13+
".": {
14+
"require": "./index.js",
15+
"import": "./index.mjs"
16+
},
17+
"./package.json": {
18+
"require": "./package.json",
19+
"import": "./package.json"
20+
},
21+
"./*": {
22+
"require": "./*.js",
23+
"import": "./*.mjs"
24+
}
25+
},
1226
"bugs": {
1327
"url": "https://github.com/graphql/graphql-js/issues"
1428
},

0 commit comments

Comments
 (0)