Skip to content

Commit 9866c41

Browse files
authored
fix(pkg): add default fallback to exports (#688)
1 parent a777e7d commit 9866c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ async function main() {
6161
{
6262
...pkg,
6363
files: ["dist-*/**", "bin/**"],
64-
main: "dist-bundle/index.js",
6564
types: "dist-types/index.d.ts",
6665
exports: {
6766
".": {
6867
types: "./dist-types/index.d.ts",
6968
import: "./dist-bundle/index.js",
69+
default: "./dist-bundle/index.js",
7070
},
7171
},
7272
sideEffects: false,

0 commit comments

Comments
 (0)