Skip to content

Commit

Permalink
fix: using more noticeable diagnostics log
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Nov 30, 2023
1 parent 6e2d16d commit 4ad9a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Expand Up @@ -357,7 +357,7 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
const diagnostics = program.getDeclarationDiagnostics()

if (diagnostics?.length) {
logger.error(ts.formatDiagnostics(diagnostics, host))
logger.error(ts.formatDiagnosticsWithColorAndContext(diagnostics, host))
}

if (typeof afterDiagnostic === 'function') {
Expand Down

0 comments on commit 4ad9a81

Please sign in to comment.