django-vue3-admin-web/node_modules/aws-crt/lib/browser/polyfills.ts
2025-10-20 21:21:14 +08:00

18 lines
428 B
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 {};