diff --git a/projects/patch/src/ts/create-program.ts b/projects/patch/src/ts/create-program.ts index 4694ac3..0cf9b91 100644 --- a/projects/patch/src/ts/create-program.ts +++ b/projects/patch/src/ts/create-program.ts @@ -92,7 +92,8 @@ namespace tsp { const plugins = preparePluginsFromCompilerOptions(options.plugins); const pluginCreator = new PluginCreator(plugins, { resolveBaseDir: projectConfig.projectDir ?? process.cwd() }); - if (tsp.currentLibrary === 'tsc' && pluginCreator.needsTscJsDocParsing) { + /* Handle JSDoc parsing in v5.3+ */ + if (tsp.currentLibrary === 'tsc' && tsShim.JSDocParsingMode && pluginCreator.needsTscJsDocParsing) { host!.jsDocParsingMode = tsShim.JSDocParsingMode.ParseAll; }