diff --git a/src/servicesHost.ts b/src/servicesHost.ts index 80b00cd3e..0bd3830e0 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -799,7 +799,7 @@ export function makeSolutionBuilderHost( // The `configFilePath` is the same value that is used as the `project` parameter of // `getCustomtransformers` below. const project = options.configFilePath; - if (project) { + if (typeof project === "string") { // Custom transformers need a reference to the `typescript.Program`, that reference is // unavailable during the the `getCustomTransformers` callback below. const transformers = getCustomTransformers(instance.loaderOptions, result.getProgram(), result.getProgram);