Skip to content

Commit

Permalink
Use cjs for commonjs exports
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 29, 2022
1 parent a4ab0c9 commit b977574
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion immutable/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swr-immutable",
"version": "0.0.1",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"types": "./dist/immutable",
"exports": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion infinite/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swr-infinite",
"version": "0.0.1",
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"types": "./dist/infinite",
"exports": "./dist/index.mjs",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@
"cache",
"fetch"
],
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.mjs",
"module": "./dist/index.esm.js",
"require": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./infinite": {
"import": "./infinite/dist/index.mjs",
"module": "./infinite/dist/index.esm.js",
"require": "./infinite/dist/index.js",
"require": "./infinite/dist/index.cjs",
"types": "./infinite/dist/infinite/index.d.ts"
},
"./immutable": {
"import": "./immutable/dist/index.mjs",
"module": "./immutable/dist/index.esm.js",
"require": "./immutable/dist/index.js",
"require": "./immutable/dist/index.cjs",
"types": "./immutable/dist/immutable/index.d.ts"
}
},
Expand Down

0 comments on commit b977574

Please sign in to comment.