Skip to content

Commit

Permalink
fix: opt for default export in package.json
Browse files Browse the repository at this point in the history
NOTE:
some compiler may not recognize the `import`
key in package.json's exports field, so changing to
default for a better compatibility
  • Loading branch information
alvis committed Nov 30, 2024
1 parent c36d1ea commit e4bc4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"types": "lib/index.d.ts",
"exports": {
".": {
"import": "./lib/index.js",
"types": "./lib/index.d.ts"
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit e4bc4c6

Please sign in to comment.