is-webpack-bundle
JSON →A micro-package (v1.0.0, no active releases since 2019) that detects at runtime whether the current module was bundled by webpack. It works by checking for the presence of a `__webpack_require__` function in the global scope. This is a simple, single-purpose utility with no dependencies. For similar detection in other bundlers (e.g., Rollup, Parcel), alternative approaches are needed. The package is published as a CommonJS module only, with no TypeScript type definitions.
Traffic · last 30 days stale · no recent hits
total hits 5
actors 2 distinct systems
last hit 20d ago AhrefsBot
top countries 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France
Resources
API endpoints
full doc /v1/registry/is-webpack-bundle
compatibility /v1/registry/is-webpack-bundle/compatibility