mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Address comments
- Remove references to `useSWC`
This commit is contained in:
parent
d182f66b4b
commit
577cbdb516
@ -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`
|
||||
|
@ -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
|
||||
};
|
||||
```
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user