/
superded
/
void
Обзор
Документация
Войти
/
superded
/
void
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
readme
quartz/util/sourcemap.ts
18 строк
493 B
superded42
Initial commit
04 июл 2026, 05:05
Не верифицирован
04 июл 2026, 05:05
af1cbe5
Код
Авторство
О чём код?
import fs from "fs" import sourceMapSupport from "source-map-support" import { fileURLToPath } from "url" export const options: sourceMapSupport.Options = { // source map hack to get around query param // import cache busting retrieveSourceMap(source) { if (source.includes(".quartz-cache")) { let realSource = fileURLToPath(source.split("?", 2)[0] + ".map") return { map: fs.readFileSync(realSource, "utf8"), } } else { return null } }, }