From 7f8e50364a2fc7e288341f29a1fa46a410d123fd Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Dec 2024 19:53:42 +0100 Subject: [PATCH] Enforce 'globalThis' as global object to make the package work in all JavaScript environments --- webpack.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.ts b/webpack.config.ts index 13e94c1..95ea70a 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -38,6 +38,7 @@ export default (env: any, argv: any): webpack.Configuration => { type: 'umd', }, clean: true, + globalObject: 'globalThis', }, }; };