webpack-global-object-x

JSON →
library 1.0.1 ·javascript maintenance
verified May 27, 2026

Utility to provide the correct global object for webpack's globalObject configuration, supporting Node.js, browsers, and Web Workers. Current stable version is 1.0.1, released with no updates since 2018. It returns a function that, when called, yields the global object (`global`, `self`, or `this`). Lightweight (no dependencies) and intended for use in webpack configuration to set `output.globalObject` for UMD bundles. Differentiators: simple, focused, and independent of any runtime environment detection library.

total hits 25
actors 7 distinct systems
last hit 1d ago AhrefsBot
GPTBot
5
Amazonbot
4
MetaBot
4
Script
1
Search engines
1
Humans
6

top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇬🇧 United Kingdom · 🇮🇩 Indonesia