@glennreyes/is-webpack

Simple check if code is running through webpack

Usage no npm install needed!

<script type="module">
  import glennreyesIsWebpack from 'https://cdn.skypack.dev/@glennreyes/is-webpack';
</script>

README

@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) {
  // ...
}