Unverified Commit 1d31d04a authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

Make it possible to disable `turbopackGc` (#100067)

whups
parent 6dd25d96
......@@ -516,8 +516,8 @@ function assignDefaultsAndValidate(
// rootTtlMs? } | undefined`) into the object napi expects
const turbopackGc = result.experimental.turbopackGc
let turbopackGcOptions: TurbopackGcOptions | undefined
if (turbopackGc === true) {
turbopackGcOptions = {}
if (typeof turbopackGc === 'boolean') {
turbopackGcOptions = turbopackGc ? {} : undefined
} else if (typeof turbopackGc === 'object' && turbopackGc !== null) {
turbopackGcOptions = {
minProgressMs: turbopackGc.minProgressMs,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment