Skip to content

Commit 005a090

Browse files
authored
fix: Add conditional exports to package.json (#815)
* fix: Add conditional exports to package.json See https://nodejs.org/docs/latest-v22.x/api/packages.html#conditional-exports * Update package.json
1 parent ae6e0bf commit 005a090

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"main": "dist/signature_pad.umd.js",
1414
"module": "dist/signature_pad.js",
1515
"types": "dist/types/signature_pad.d.ts",
16+
"exports": {
17+
"import": "./dist/signature_pad.js",
18+
"require": "./dist/signature_pad.umd.js",
19+
"default": "./dist/signature_pad.umd.js"
20+
},
1621
"scripts": {
1722
"build": "yarn run lint && yarn run clean && rollup --config && yarn run emit-types && yarn run update-docs",
1823
"clean": "yarn run del dist",

0 commit comments

Comments
 (0)