mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 07:31:19 +08:00
11 lines
295 B
Plaintext
11 lines
295 B
Plaintext
```js
|
|
// .storybook/main.js
|
|
|
|
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;
|
|
}
|
|
``` |