Skip to content

Commit 805f981

Browse files
committed
fix: ship valid ESM
1 parent f181c7b commit 805f981

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@
1616
"license": "MIT",
1717
"author": "Sanity.io <hello@sanity.io>",
1818
"sideEffects": false,
19+
"type": "module",
1920
"exports": {
2021
".": {
2122
"types": "./dist/pt-to-html.d.ts",
2223
"source": "./src/index.ts",
23-
"import": "./dist/pt-to-html.esm.js",
24-
"require": "./dist/pt-to-html.js",
25-
"default": "./dist/pt-to-html.esm.js"
24+
"import": "./dist/pt-to-html.js",
25+
"require": "./dist/pt-to-html.cjs",
26+
"default": "./dist/pt-to-html.js"
2627
},
2728
"./package.json": "./package.json"
2829
},
29-
"main": "./dist/pt-to-html.js",
30-
"module": "./dist/pt-to-html.esm.js",
30+
"main": "./dist/pt-to-html.cjs",
31+
"module": "./dist/pt-to-html.js",
3132
"source": "./src/index.ts",
3233
"types": "./dist/pt-to-html.d.ts",
3334
"files": [

0 commit comments

Comments
 (0)