Skip to content

Commit

Permalink
chore(credential-provider-node): statically import credential-provide…
Browse files Browse the repository at this point in the history
…r-env (#6026)
  • Loading branch information
trivikr authored Apr 25, 2024
1 parent cd928aa commit c7872e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/credential-provider-node/src/defaultProvider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fromEnv } from "@aws-sdk/credential-provider-env";
import type { FromIniInit } from "@aws-sdk/credential-provider-ini";
import type { FromProcessInit } from "@aws-sdk/credential-provider-process";
import type { FromSSOInit, SsoCredentialsParameters } from "@aws-sdk/credential-provider-sso";
Expand Down Expand Up @@ -60,7 +61,6 @@ export const defaultProvider = (init: DefaultProviderInit = {}): MemoizedProvide
: [
async () => {
init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv");
const { fromEnv } = await import("@aws-sdk/credential-provider-env");
return fromEnv(init)();
},
]),
Expand Down

0 comments on commit c7872e2

Please sign in to comment.