Skip to content

Commit 7bc8bc0

Browse files
fix: handle CommonJS export for trim-canvas to prevent runtime TypeError
1 parent f6c0b64 commit 7bc8bc0

File tree

5 files changed

+8979
-10
lines changed

5 files changed

+8979
-10
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@babel/runtime": "^7.17.9",
8383
"@types/signature_pad": "^2.3.0",
8484
"signature_pad": "^2.3.2",
85-
"trim-canvas": "^0.1.0"
85+
"trim-canvas": "^0.1.2"
8686
},
8787
"devDependencies": {
8888
"@agilgur5/tsconfig": "^0.0.1",
@@ -97,6 +97,7 @@
9797
"@rollup/plugin-commonjs": "^21.1.0",
9898
"@rollup/plugin-node-resolve": "^13.2.1",
9999
"@testing-library/react": "^16.1.0",
100+
"@types/babel__core": "^7.20.5",
100101
"@types/prop-types": "^15.7.3",
101102
"@types/react": "^19.0.2",
102103
"canvas": "^3.1.0",
@@ -114,6 +115,7 @@
114115
"rollup-plugin-typescript2": "^0.32.1",
115116
"ts-node": "^10.7.0",
116117
"ts-standard": "^11.0.0",
118+
"tslib": "^2.8.1",
117119
"typescript": "^4.6.3",
118120
"window-resizeto": "^0.0.2"
119121
},

0 commit comments

Comments
 (0)