Add Storybook MCP
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// This file has been automatically migrated to valid ESM format by Storybook.
|
||||
import { defineMain } from '@storybook/react-vite/node';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { createRequire } from 'node:module';
|
||||
@@ -49,11 +50,16 @@ export default defineMain({
|
||||
getAbsolutePath('@storybook/addon-docs'),
|
||||
getAbsolutePath('@storybook/addon-a11y'),
|
||||
getAbsolutePath('@storybook/addon-vitest'),
|
||||
getAbsolutePath('@storybook/addon-mcp'),
|
||||
],
|
||||
framework: {
|
||||
name: getAbsolutePath('@storybook/react-vite'),
|
||||
options: {},
|
||||
},
|
||||
features: {
|
||||
experimentalComponentsManifest: true,
|
||||
experimentalCodeExamples: true, // optional
|
||||
},
|
||||
viteFinal: async (config, { configType }) => {
|
||||
// Add Node.js polyfills for browser compatibility
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user