detect-bundler

    1.0.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.

    Install

    npm i detect-bundler

    DownloadsWeekly Downloads

    135

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

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