marvelapp / react-ab-test

A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
MIT License
243 stars 46 forks source link

add the posibility to show debugger in production builds #5

Closed jalopez closed 5 years ago

jalopez commented 5 years ago

Table of Contents

Description

Add a new method in the debugger (setDebuggerAvailable) that allows a developer to override the default setting that makes the debugger unavailable in production builds

Motivation and Context

There are some scenarios where a developer could want to have the debugger enabled in a production build, or change this behaviour at runtime (for instance, have it enabled in an integration environment but disabled in production one).

Fixes: https://github.com/marvelapp/react-ab-test/issues/3, https://github.com/pushtell/react-ab-test/issues/49

How Has This Been Tested?

It is a non-breaking change tested with new unit tests.

Screenshots (if appropriate):

Types of changes

Checklist: