File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/signature-v4-multi-region/src Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,20 @@ export function loadCrt(): void {
13
13
const __require = require ;
14
14
const moduleName = "@aws-sdk/signature-v4-crt" ;
15
15
__require . call ( null , moduleName ) ;
16
+
17
+ process . emitWarning (
18
+ `The package @aws-sdk/signature-v4-crt has been loaded dynamically.
19
+ To avoid this warning, please explicitly import the package in your application with:
20
+
21
+ import "@aws-sdk/signature-v4-crt"; // ESM
22
+ require("@aws-sdk/signature-v4-crt"); // CJS
23
+
24
+ In a future version of the AWS SDK for JavaScript (v3), this warning
25
+ will become an error and dynamic loading will not be available.
26
+
27
+ See https://github.com/aws/aws-sdk-js-v3/issues/5229.
28
+ `
29
+ ) ;
16
30
}
17
31
} catch ( e ) {
18
32
// ignored.
You can’t perform that action at this time.
0 commit comments