From 205bce1ac024a0a9e06504cbbceb28f77f497d8d Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:01:23 -0700 Subject: [PATCH] Require exactly 'true' for truthy reference directive prop --- src/compiler/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index eaa8bbef47237..7545cf5c908d3 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -10511,7 +10511,7 @@ export function processPragmasIntoFields(context: PragmaContext, reportDiagnosti const libReferenceDirectives = context.libReferenceDirectives; forEach(toArray(entryOrList) as PragmaPseudoMap["reference"][], arg => { const { types, lib, path, ["resolution-mode"]: res } = arg.arguments; - if (arg.arguments["no-default-lib"]) { + if (arg.arguments["no-default-lib"] === "true") { context.hasNoDefaultLib = true; } else if (types) {