diff --git a/playwright.config.ts b/playwright.config.ts index be554f8..2b231a5 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ [ "@estruyf/github-actions-reporter", { - title: "My custom title", + title: "Test summary", useDetails: true, showError: true, }, diff --git a/src/controller/index.ts b/src/controller/index.ts index 0c2e9d3..9c0747f 100644 --- a/src/controller/index.ts +++ b/src/controller/index.ts @@ -35,6 +35,7 @@ export class ScramjetController { cleanerrors: false, scramitize: false, sourcemaps: false, + rewriterLogs: false, }, siteFlags: {}, codec: { diff --git a/src/shared/rewriters/js.ts b/src/shared/rewriters/js.ts index eead175..6fc9d2e 100644 --- a/src/shared/rewriters/js.ts +++ b/src/shared/rewriters/js.ts @@ -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"; diff --git a/src/types.d.ts b/src/types.d.ts index f6f4e19..121b7a9 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -32,6 +32,7 @@ type ScramjetFlags = { scramitize: boolean; sourcemaps: boolean; syncxhr: boolean; + rewriterLogs: boolean; }; interface ScramjetConfig {