Skip to content

Commit

Permalink
fix: emit transformation warnings via stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Oct 24, 2023
1 parent 7e916f5 commit 97f9485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/transform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function transformSync(
if (transformed.warnings && transformed.warnings.length > 0) {
const { warnings } = transformed;
for (const warning of warnings) {
console.log(warning);
console.error(warning);
}
}

Expand Down Expand Up @@ -117,7 +117,7 @@ export async function transform(
if (transformed.warnings && transformed.warnings.length > 0) {
const { warnings } = transformed;
for (const warning of warnings) {
console.log(warning);
console.error(warning);
}
}

Expand Down

0 comments on commit 97f9485

Please sign in to comment.