const webpackConfig = require('./webpack.config');

// Storybook runs two webpack setups - one for the 'preview',
// which is its iframe where it shows the actual story, and
// one for its 'manager' which is all the story selection/addon
// chrome. By default, the webpack.config.js in this folder
// only applies to the preview. This file is a shim that also
// lets us use our webpack config for the manager instead, which
// allows us to not have to prebuild our custom addons.
module.exports = {
  managerWebpack: async (config, options) => {
    return webpackConfig({ config });
  },
};
