aws-crt
Version:
NodeJS/browser bindings to the aws-c-* libraries
18 lines (14 loc) • 428 B
text/typescript
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
import buffer from 'buffer';
import process from 'process';
// Workaround to get mqtt-js working with Webpack 5
if (window) {
(window as any).Buffer = buffer.Buffer;
(window as any).process = process;
// NodeJS global shim workaround for Angular
(window as any).global = window;
}
export {};