storybook/docs/_snippets/storybook-main-versioned-webpack.md
2024-06-13 17:53:08 +01:00

336 B

export function webpackFinal(config, { presets }) {
  const version = await presets.apply('webpackVersion');
  const instance = (await presets.apply('webpackInstance'))?.default;

  logger.info(`=> Running in webpack ${version}: ${instance}`);
  return config;
}