Created
August 17, 2021 16:38
-
-
Save emilisto/39d6c1e4836cee9de3297f5ca9cbf2b2 to your computer and use it in GitHub Desktop.
feature-toggle.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
{ | |
const FEATURE_VIDEOPLAYER_WEBCOMPONENT = true | |
if (!FEATURE_VIDEOPLAYER_WEBCOMPONENT) { | |
loadWebPackPlayer() | |
} else { | |
loadCalicoPlayer() | |
} | |
} | |
function loadWebPackPlayer() { | |
throw new Error('Function not implemented.') | |
} | |
function loadCalicoPlayer() { | |
throw new Error('Function not implemented.') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment