Skip to content

Commit bcb0539

Browse files
committed
chore: update module export syntax
1 parent 9ca6583 commit bcb0539

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
"vite-plugin-graphql-codegen"
1919
],
2020
"type": "module",
21-
"exports": "./dist/index.js",
22-
"main": "./dist/index.cjs",
23-
"types": "./dist/index.d.ts",
24-
"files": [
25-
"dist"
26-
],
21+
"main": "dist/index.cjs",
22+
"module": "dist/index.js",
23+
"types": "dist/index.d.ts",
24+
"exports": {
25+
".": {
26+
"import": "./dist/index.js",
27+
"require": "./dist/index.cjs"
28+
}
29+
},
2730
"release": {
2831
"branches": [
2932
"main"

0 commit comments

Comments
 (0)