Skip to content

Commit

Permalink
Use process.emitWarning instead of console.warn
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Dec 4, 2024
1 parent 0eef49a commit 078ac3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function createHook (meta) {

async function initialize (data) {
if (global.__import_in_the_middle_initialized__) {
console.warn("The 'import-in-the-middle' hook has already been initialized")
process.emitWarning("The 'import-in-the-middle' hook has already been initialized")
}

global.__import_in_the_middle_initialized__ = true
Expand Down

0 comments on commit 078ac3a

Please sign in to comment.