19 lines
818 B
JavaScript
19 lines
818 B
JavaScript
// A guide to feature toggling (deprecated)
|
|
//
|
|
// The feature toggle is:
|
|
// - independent from the NODE_ENV
|
|
// - isn't pruning code in production, as the objective is to eventually ship the code.
|
|
// - doesn't allow to cherry-pick which feature to enable
|
|
//
|
|
// By default, the experimental features are only enabled in:
|
|
// - the local environment
|
|
// - the pull request previews
|
|
//
|
|
// Reviewers can force the value with the local storage and the GRID_EXPERIMENTAL_ENABLED key:
|
|
// - 'true' => force it to be enabled
|
|
// - 'false' => force it to be disabled
|
|
//
|
|
// Developers (users) are discouraged to enable the experimental feature by setting the GRID_EXPERIMENTAL_ENABLED env.
|
|
// Instead, prefer exposing experimental APIs, for instance, a prop or a new `unstable_` module.
|
|
|
|
export var GRID_EXPERIMENTAL_ENABLED = false; |