Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit c142bd1

Browse files
committed
feat: add package exports for ES modules
This commit adds the "exports" field to package.json, enabling the package to be imported as an ES module. The "import" field points to the compiled JavaScript file, and the "types" field points to the TypeScript definition file.
1 parent 841baeb commit c142bd1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"css",
1414
"css-modules"
1515
],
16+
"exports": {
17+
".": {
18+
"types": "./dist/index.d.ts",
19+
"import": "./dist/index.mjs"
20+
}
21+
},
1622
"files": [
1723
"dist",
1824
"src"

0 commit comments

Comments
 (0)