Skip to content

Commit 2159b34

Browse files
danmolitorclaude
andcommitted
Add default export condition for CJS consumer compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5e8b42b commit 2159b34

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"import": "./dist/browser.js"
2929
},
3030
"types": "./dist/index.d.ts",
31-
"import": "./dist/index.js"
31+
"import": "./dist/index.js",
32+
"default": "./dist/index.js"
3233
},
3334
"./browser": {
3435
"types": "./dist/browser.d.ts",

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"exports": {
99
".": {
1010
"types": "./dist/index.d.ts",
11-
"import": "./dist/index.js"
11+
"import": "./dist/index.js",
12+
"default": "./dist/index.js"
1213
}
1314
},
1415
"scripts": {

0 commit comments

Comments
 (0)