Address comments

- Remove references to `useSWC`
This commit is contained in:
Kyle Gach 2024-01-10 09:26:27 -07:00
parent d182f66b4b
commit 577cbdb516
3 changed files with 5 additions and 31 deletions

View File

@ -901,20 +901,10 @@ The available options are:
#### `builder`
Type:
```ts
{
useSWC?: boolean;
}
```
Type: `Record<string, any>`
Configure options for the [framework's builder](../api/main-config-framework.md#optionsbuilder). For Next.js, that builder is Webpack 5.
##### `builder.useSWC`
Use the SWC compiler instead of Babel. [More information is available here.](../api/main-config-framework.md#optionsbuilderuseswc)
#### `image`
Type: `object`

View File

@ -2,15 +2,7 @@
// .storybook/main.js
export default {
// ...
framework: {
// name: '@storybook/react-webpack5', // 👈 Remove this
name: '@storybook/nextjs', // 👈 Add this
options: {
builder: {
// Set useSWC to true if you want to try out the experimental SWC compiler in Next.js >= 14.0.0
useSWC: true,
},
},
},
// framework: '@storybook/react-webpack5', 👈 Remove this
framework: '@storybook/nextjs', // 👈 Add this
};
```

View File

@ -4,16 +4,8 @@ import { StorybookConfig } from '@storybook/nextjs';
const config: StorybookConfig = {
// ...
framework: {
// name: '@storybook/react-webpack5', // 👈 Remove this
name: '@storybook/nextjs', // 👈 Add this
options: {
builder: {
// Set useSWC to true if you want to try out the experimental SWC compiler in Next.js >= 14.0.0
useSWC: true,
},
},
},
// framework: '@storybook/react-webpack5', 👈 Remove this
framework: '@storybook/nextjs', // 👈 Add this
};
export default config;