Skip to content

Commit 5088784

Browse files
fix: add browser condition to package exports (#4756)
This should fix #4676. Jest prefers the `browser` condition when using the `jsdom` environment: https://jestjs.io/docs/configuration#testenvironmentoptions-object
1 parent 199726e commit 5088784

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/main/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"exports": {
1010
".": {
1111
"types": "./dist/index.d.ts",
12+
"browser": "./dist/index.js",
1213
"node": "./ssr/index.js",
1314
"default": "./dist/index.js"
1415
},

0 commit comments

Comments
 (0)