/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v7.29.6
scripts/utils/logger.cjs
10 строк
334 B
Huáng Jùnliàng
Enable type checking for `scripts` and `babel-worker.cjs` (#17454)
30 июл 2025, 01:26
Не верифицирован
30 июл 2025, 01:26
ac0b069
Код
Авторство
О чём код?
// @ts-check /** * Logs a message to the console with a timestamp. * @param {string} msg - The message to log. * @param {...any} args - Additional arguments to log. */ exports.log = function (msg, ...args) { const time = new Date().toLocaleTimeString("en-US", { hour12: false }); console.log(`[${time}] ${msg}`, ...args); };