Skip to content

Commit 1df301d

Browse files
committedJun 4, 2019
chore(migrate): replaces console with process stream
fixes console error logging
1 parent 71a58b6 commit 1df301d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/migrate/removeDeprecatedPlugins/removeDeprecatedPlugins.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function(j: JSCodeshift, ast: Node): Node {
3838
j(path).remove();
3939
}
4040
} else {
41-
console.error(`
41+
process.stderr.write(`
4242
${chalk.red("Please remove deprecated plugins manually. ")}
4343
See ${chalk.underline("https://webpack.js.org/guides/migrating/")} for more information.`);
4444
}

0 commit comments

Comments
 (0)
Please sign in to comment.