Skip to content

Commit 91e46dd

Browse files
committed
chore: reduce bundle size
1 parent 754593c commit 91e46dd

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
},
5050
"dependencies": {
5151
"@selemondev/vue3-signature-pad": "^1.4.0",
52-
"nanoid": "^5.0.9",
5352
"signature_pad": "^5.0.4"
5453
},
5554
"devDependencies": {

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/VueSignaturePad.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88
Signature,
99
WaterMarkObj,
1010
} from '../types'
11-
import { nanoid } from 'nanoid'
1211
import SignaturePad from 'signature_pad'
1312
import { onBeforeUnmount, onMounted, ref, watch, watchEffect } from 'vue'
1413
@@ -47,7 +46,7 @@ const canvasOptions = ref<CanvasOptions>({
4746
throttle: 16,
4847
backgroundColor: props.options.backgroundColor,
4948
penColor: props.options.penColor,
50-
canvasUuid: `canvas${nanoid()}`,
49+
canvasUuid: `canvas_${crypto.randomUUID()}`,
5150
})
5251
5352
function isCanvasEmpty(): boolean {

0 commit comments

Comments
 (0)