Skip to content

Commit 8457581

Browse files
committed
build: fix exports condition order to prefer esm with default fallback
1 parent 3c8e8dc commit 8457581

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"exports": {
99
".": {
1010
"types": "./dist/index.d.ts",
11+
"import": "./dist/index.mjs",
1112
"require": "./dist/index.cjs",
12-
"import": "./dist/index.mjs"
13+
"default": "./dist/index.mjs"
1314
},
1415
"./*": "./*"
1516
},
@@ -44,4 +45,4 @@
4445
"vitest": "^4.0.16"
4546
},
4647
"packageManager": "pnpm@10.27.0"
47-
}
48+
}

0 commit comments

Comments
 (0)