Skip to content

swansontec/detect-bundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Detects browser and React Native source-code bundlers

Resources

Stars

Watchers

Forks

Packages

No packages published