Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 1d74ba3

Browse files
committed
chore(compiler): update benchmark script
1 parent 0036d1e commit 1d74ba3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/benchmark.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { compile, CompileOptions } from 'https://deno.land/x/[email protected]/tsc/compile.ts'
22
import { colors, path, Sha1, walk } from '../deps.ts'
3-
import { hashShort } from '../shared/constants.ts'
43
import { initWasm, transpileSync } from './mod.ts'
54

65
function tsc(source: string, opts: any) {
@@ -10,7 +9,7 @@ function tsc(source: string, opts: any) {
109
reactRefresh: opts.isDev,
1110
rewriteImportPath: (path: string) => path.replace('https://', '/-/'),
1211
signUseDeno: (id: string) => {
13-
const sig = 'useDeno.' + (new Sha1()).update(id).update('0.2.25').update(Date.now().toString()).hex().slice(0, hashShort)
12+
const sig = 'useDeno.' + (new Sha1()).update(id).update('0.2.25').update(Date.now().toString()).hex().slice(0, 9)
1413
return sig
1514
}
1615
}

0 commit comments

Comments
 (0)