{"library":"is-webpack-bundle","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install is-webpack-bundle","imports":["const isWebpackBundle = require('is-webpack-bundle');","import isWebpackBundle from 'is-webpack-bundle';","// @ts-ignore or declare module\nconst isWebpackBundle = require('is-webpack-bundle');"]},{"cmd":"yarn add is-webpack-bundle","imports":[]},{"cmd":"pnpm add is-webpack-bundle","imports":[]}],"homepage":null,"github":"https://github.com/thejameskyle/is-webpack-bundle","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/is-webpack-bundle","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/is-webpack-bundle/compatibility"}}