/
githubmirror
/
tailwindcss
Обзор
Документация
Войти
/
githubmirror
/
tailwindcss
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/@tailwindcss-browser/src/instrumentation.ts
29 строк
516 B
Jordan Pittman
Add `@tailwindcss/browser` package (#15558)
07 янв 2025, 17:57
Не верифицирован
07 янв 2025, 17:57
dcf116b
Код
Авторство
О чём код?
export class Instrumentation { start(label: string) { performance.mark(`${label} (start)`) } end(label: string, detail?: any) { performance.mark(`${label} (end)`) performance.measure(label, { start: `${label} (start)`, end: `${label} (end)`, detail, }) } hit(label: string, detail?: any) { performance.mark(label, { detail, }) } error(error: any) { performance.mark(`(error)`, { detail: { error: `${error}` }, }) throw error } }