rolldown-plugin-dts 0.15.8 → 0.15.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -264,12 +264,7 @@ function tscEmit(tscOptions) {
|
|
|
264
264
|
dtsCode = code;
|
|
265
265
|
}
|
|
266
266
|
}, void 0, true, { afterDeclarations: [stripPrivateFields] }, true);
|
|
267
|
-
|
|
268
|
-
if (emitErrors.length > 0) return { error: ts.formatDiagnostics(emitErrors, formatHost) };
|
|
269
|
-
if (emitSkipped) {
|
|
270
|
-
const errors = ts.getPreEmitDiagnostics(program).filter((d) => d.category === ts.DiagnosticCategory.Error);
|
|
271
|
-
if (errors.length > 0) return { error: ts.formatDiagnostics(errors, formatHost) };
|
|
272
|
-
}
|
|
267
|
+
if (emitSkipped && diagnostics.length) return { error: ts.formatDiagnostics(diagnostics, formatHost) };
|
|
273
268
|
if (!dtsCode && file.isDeclarationFile) {
|
|
274
269
|
debug("nothing was emitted. fallback to sourceFile text.");
|
|
275
270
|
dtsCode = file.getFullText();
|
package/dist/tsc-worker.js
CHANGED
package/dist/tsc.js
CHANGED