diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index b64dfaf980fd92..5ad8fcbd093e5b 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -185,12 +185,12 @@ function setupFetch() { return undici; } - emitExperimentalWarning('The Fetch API'); undici = require('internal/deps/undici/undici'); return undici; } async function fetch(input, init = undefined) { + emitExperimentalWarning('The Fetch API'); return lazyUndici().fetch(input, init); }