detect-bundler

v1.1.0
Detects browser and React Native source-code bundlers
build bundler detect platform

detect-bundler

This library exports two simple flags:

  • isBrowser - True if a tool like Webpack or Browserify is bundling this project for the web.
  • isReactNative- True if the React Native is bundling this project.

This library uses the package.json browser field to select which flags to export. This means that everything happens at build time; there is no run-time platform detection.

npm i detect-bundler

Metadata

  • MIT
  • Whatever
  • William Swanson
  • released 9/16/2022

Downloads