We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ab827 commit e25f7d2Copy full SHA for e25f7d2
packages/plugin-vue-jsx/src/index.ts
@@ -328,17 +328,8 @@ function isDefineComponentCall(
328
)
329
}
330
331
-const hash =
332
- // eslint-disable-next-line n/no-unsupported-features/node-builtins -- crypto.hash is supported in Node 21.7.0+, 20.12.0+
333
- crypto.hash ??
334
- ((
335
- algorithm: string,
336
- data: crypto.BinaryLike,
337
- outputEncoding: crypto.BinaryToTextEncoding,
338
- ) => crypto.createHash(algorithm).update(data).digest(outputEncoding))
339
-
340
function getHash(text: string) {
341
- return hash('sha256', text, 'hex').substring(0, 8)
+ return crypto.hash('sha256', text, 'hex').substring(0, 8)
342
343
344
export default vueJsxPlugin
0 commit comments