Skip to content

Commit

Permalink
Hack JSDocParsingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Dec 4, 2024
1 parent 5bd618c commit 95f7b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/patch/src/ts/create-program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace tsp {
const pluginCreator = new PluginCreator(plugins, { resolveBaseDir: projectConfig.projectDir ?? process.cwd() });

/* Handle JSDoc parsing in v5.3+ */
if (tsp.currentLibrary === 'tsc' && tsShim.JSDocParsingMode && pluginCreator.needsTscJsDocParsing) {
if ((tsp.currentLibrary === 'tsc' || tsp.currentLibrary === '_tsc') && tsShim.JSDocParsingMode && pluginCreator.needsTscJsDocParsing) {
host!.jsDocParsingMode = tsShim.JSDocParsingMode.ParseAll;
}

Expand Down

0 comments on commit 95f7b7f

Please sign in to comment.