/* global window */
/* eslint-disable global-require, import/no-extraneous-dependencies, import/no-unresolved */

function configureStorybook() {
  if (typeof window === 'object') {
    const { getStorybook } = require('@storybook/react');
    window.loki = { getStorybook };
  }
}

module.exports = configureStorybook;

/* global window */
/* eslint-disable global-require, import/no-extraneous-dependencies, import/no-unresolved */

function configureStorybook() {
  if (typeof window === 'object') {
    const storybook = require('@storybook/react');
    window.loki = { getStorybook: storybook.getStorybook };
  }
}

module.exports = configureStorybook;

Fix require destructor in configure-react that broke build-storybook
Fix require destructor in configure-react that broke build-storybook
