diff --git a/code/frameworks/nextjs/src/preset.ts b/code/frameworks/nextjs/src/preset.ts index 95f4cc062702..e9b503e35422 100644 --- a/code/frameworks/nextjs/src/preset.ts +++ b/code/frameworks/nextjs/src/preset.ts @@ -22,6 +22,7 @@ import { configureSWCLoader } from './swc/loader'; import { configureBabelLoader } from './babel/loader'; import { configureFastRefresh } from './fastRefresh/webpack'; import { configureAliases } from './aliases/webpack'; +import { logger } from '@storybook/node-logger'; export const addons: PresetProperty<'addons'> = [ dirname(require.resolve(join('@storybook/preset-react-webpack', 'package.json'))), @@ -173,8 +174,10 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (baseConfig, } if (useSWC) { + logger.info('=> Using SWC as compiler'); await configureSWCLoader(baseConfig, options, nextConfig); } else { + logger.info('=> Using Babel as compiler'); await configureBabelLoader(baseConfig, options); }