diff --git a/code/lib/csf-plugin/src/index.ts b/code/lib/csf-plugin/src/index.ts index 037f156abf4b..8204a1f723ac 100644 --- a/code/lib/csf-plugin/src/index.ts +++ b/code/lib/csf-plugin/src/index.ts @@ -20,7 +20,7 @@ export const unplugin = createUnplugin((options) => { const code = await fs.readFile(fname, 'utf-8'); try { const csf = loadCsf(code, { makeTitle: (userTitle) => userTitle || 'default' }).parse(); - enrichCsf(csf); + enrichCsf(csf, options); return formatCsf(csf); } catch (err: any) { logger.warn(err.message);