Skip to content

Instantly share code, notes, and snippets.

@emilisto
Created August 17, 2021 16:38
Show Gist options
  • Save emilisto/39d6c1e4836cee9de3297f5ca9cbf2b2 to your computer and use it in GitHub Desktop.
Save emilisto/39d6c1e4836cee9de3297f5ca9cbf2b2 to your computer and use it in GitHub Desktop.
feature-toggle.ts
{
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