Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support config debug in dev mode #212

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/builder-rsbuild/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const start: RsbuildBuilder['start'] = async ({
router.use(rsbuildServer.middlewares)
rsbuildServer.connectWebSocket({ server: storybookServer })
const stats = await waitFirstCompileDone
await server.afterListen()

return {
bail,
Expand Down
18 changes: 18 additions & 0 deletions website/docs/guide/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ export default {
## Why using `getAbsolutePath` to resolve the framework in sandboxes in this repository?

Check out https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments.

## How to debug the Rsbuild and Rspack config of the Storybook builder?

Based on Rsbuild, you can directly use the [CLI debug capability](https://rsbuild.dev/guide/debug/debug-mode) provided by Rsbuild for debugging. For example:

In development mode:

```bash
DEBUG=rsbuild storybook dev
```

In production mode:

```bash
DEBUG=rsbuild storybook build
```

Check the output in the CLI, you can see where the Rsbuild and Rspack configuration is dumped on the disk and view it.
Loading