diff --git a/src/index.js b/src/index.js index b20c09e..5da7ed4 100644 --- a/src/index.js +++ b/src/index.js @@ -39,14 +39,19 @@ export default (environments = DEFAULT_ENVIRONMENTS) => { backgroundColor = '#000', foregroundColor = '#fff', } = environment; + const environmentBadge = document.createElement('div'); - environmentBadge.innerHTML = ` -
- - ${displayName} - -
- `; + + // prettier-ignore + // Using traditional string concatenation to avoid Babel including the + // 9KB Array.prototype.concat to polyfill support for template tags. + environmentBadge.innerHTML = '\ +
\ + \ + ' + displayName + '\ + \ +
\ + '; document.body.appendChild(environmentBadge); }