Skip to content

Commit b93d96d

Browse files
committed
docs(changeset): Add exports field to package.json to ensure ESM is resolved properly.
1 parent 93241d7 commit b93d96d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/sixty-hounds-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"latex-math": patch
3+
---
4+
5+
Add exports field to package.json to ensure ESM is resolved properly.

lib/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"bugs": "https://github.com/tiny-md/latex-math/issues",
1313
"homepage": "https://github.com/tiny-md/latex-math/#readme",
1414
"sideEffects": false,
15+
"exports": {
16+
".": {
17+
"types": "./dist/index.d.ts",
18+
"import": "./dist/index.mjs",
19+
"require": "./dist/index.js"
20+
}
21+
},
1522
"files": [
1623
"dist/**"
1724
],

0 commit comments

Comments
 (0)