Skip to content

Commit

Permalink
feat: support config debug in dev mode (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Jan 8, 2025
1 parent 4787eb3 commit 4264ff8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
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.

0 comments on commit 4264ff8

Please sign in to comment.