[bugfix] Fix Storybook builder require() error by converting main.ts to main.mjs

- Convert .storybook/main.ts to main.mjs to resolve ES module compatibility
- Use dynamic imports instead of static imports to avoid require() errors
- Add .storybook directory to tsconfig.json includes
- Storybook build and dev server now work correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
snomiao
2025-08-14 19:18:06 +00:00
parent ceec83b00e
commit b2a97ee4f0
3 changed files with 50 additions and 79 deletions

View File

@@ -37,6 +37,7 @@
"src/types/**/*.d.ts",
"tests-ui/**/*",
"global.d.ts",
"vite.config.mts"
"vite.config.mts",
".storybook/**/*"
]
}