We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8761a commit c68df9cCopy full SHA for c68df9c
.changeset/fresh-lamps-warn.md
@@ -0,0 +1,11 @@
1
+---
2
+"unicode-segmenter": patch
3
4
+
5
+Override package's defualt type to `"commonjs"` in publishConfig
6
7
+Since it is still necessary for TypeScript projects.
8
+(See https://github.com/microsoft/TypeScript/issues/54523)
9
10
+It doesn't actually affects module resolution as we have explicit entries for each modules.
11
+Just workaround.
package.json
@@ -30,6 +30,7 @@
30
"./dist/intl-polyfill.cjs"
31
],
32
"publishConfig": {
33
+ "type": "commonjs",
34
"exports": {
35
"./grapheme": {
36
"types": "./dist/grapheme.d.ts",
0 commit comments