detect-bundler
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    69
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    69
  • 1.0.0
    7

Package Sidebar

Install

npm i detect-bundler

Weekly Downloads

76

Version

1.1.0

License

MIT

Unpacked Size

1.32 kB

Total Files

7

Last publish

Collaborators

  • paullinator
  • edgyjontz
  • swansontec
  • thehobbit85
  • mattdpiche
  • samholmes