@glennreyes/is-webpack Simple check if code is running through webpack Installation & Usage npm install @glennreyes/is-webpack const isWebpack = require('@glennreyes/webpack') if (isWebpack) { // ... }