mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 14:00:01 -04:00
make rewriter logs a flag
This commit is contained in:
parent
dc86f0eaf2
commit
d79811d609
4 changed files with 5 additions and 3 deletions
|
@ -38,14 +38,14 @@ function rewriteJsWrapper(
|
|||
const { js, errors, duration } = out;
|
||||
|
||||
// TODO: maybe make this a scram flag?
|
||||
if (true) {
|
||||
if (flagEnabled("rewriterLogs", meta.base)) {
|
||||
for (const error of errors) {
|
||||
console.error("oxc parse error", error);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: maybe make this a scram flag?
|
||||
if (true) {
|
||||
if (flagEnabled("rewriterLogs", meta.base)) {
|
||||
let timespan: string;
|
||||
if (duration < 1n) {
|
||||
timespan = "BLAZINGLY FAST";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue