Skip to content

Commit 80465af

Browse files
committed
fix(exports): use default as esm export to support new bundlers and jspm.dev
1 parent 9412aac commit 80465af

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"import": "./dist/esm/jsx.js",
1110
"require": "./dist/cjs/jsx.js",
12-
"umd": "./dist/umd/jsx.js"
11+
"umd": "./dist/umd/jsx.js",
12+
"default": "./dist/esm/jsx.js"
1313
},
1414
"./jsx-runtime": {
15-
"import": "./dist/esm/jsx.js",
1615
"require": "./dist/cjs/jsx.js",
17-
"umd": "./dist/umd/jsx.js"
16+
"umd": "./dist/umd/jsx.js",
17+
"default": "./dist/esm/jsx.js"
1818
},
1919
"./jsx-dev-runtime": {
20-
"import": "./dist/esm/jsx.js",
2120
"require": "./dist/cjs/jsx.js",
22-
"umd": "./dist/umd/jsx.js"
21+
"umd": "./dist/umd/jsx.js",
22+
"default": "./dist/esm/jsx.js"
2323
}
2424
},
2525
"module": "./dist/esm/jsx.js",

0 commit comments

Comments
 (0)