-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feature-flags): implement feature flags for cwc (#11081)
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/carbon-web-components/src/globals/internal/feature-flags.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @license | ||
* | ||
* Copyright IBM Corp. 2023 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/** | ||
* This file contains the list of the default values of compile-time feature flags. | ||
*/ | ||
|
||
/** | ||
* This flag will determine if all feature flags should be enabled | ||
* | ||
* @type {boolean} | ||
*/ | ||
export const CDS_FLAGS_ALL: boolean = | ||
process!.env.CDS_FLAGS_ALL === 'true' || false; | ||
|
||
/** | ||
* Enables experimental component | ||
* | ||
* @type {boolean} | ||
*/ | ||
export const CDS_EXPERIEMENTAL_COMPONENT_NAME: boolean = | ||
process!.env.CDS_EXPERIEMENTAL_COMPONENT_NAME === 'true' || | ||
CDS_FLAGS_ALL || | ||
false; |