import BrowserSprite from 'svg-baker-runtime/src/browser-sprite';

const sprite = new BrowserSprite();

if (document.body) {
  sprite.mount(document.body, true);
} else {
  document.addEventListener('DOMContentLoaded', () => {
    sprite.mount(document.body, true);
  }, false);
}

export default sprite;

import BrowserSprite from 'svg-baker-runtime/src/browser-sprite';

var sprite = new BrowserSprite();

document.addEventListener('DOMContentLoaded', function() {
  sprite.mount(document.body, true);
}, false);

export default sprite;

Update browser runtime according to https://github.com/kisenka/svg-sprite-loader/issues/91#issuecomment-296481784