Skip to content

Commit 95d021b

Browse files
committed
Docs: Fix typos
1 parent c2b34da commit 95d021b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/addons/addon-migration-guide.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Next, update your `main.ts` to reference the new preset file:
280280
The following changes are not strictly required yet, but we recommend making them to improve your users' experience.
281281

282282
### CSF 4 annotation support
283-
To support CSF 4 annotations in your addon, you will need to update your `src/index.ts` file to use the new `definePreviewAddon`. This change is highly recommended, as it will help your own users reap the benefits of CSF 4.
283+
To support CSF 4 annotations in your addon, you will need to update your `src/index.ts` file to use the new `definePreviewAddon`. This change is highly recommended, as it will help your own users reap the benefits of CSF 4.
284284

285285
With CSF 4, users can chain their preview configuration and benefit from better typing and more flexibility. Addons must export annotations to be compatible with this new syntax. CSF 4 will be the default way to write stories in Storybook 11.
286286

@@ -295,7 +295,7 @@ With CSF 4, users can chain their preview configuration and benefit from better
295295

296296
### Removal of exportEntries
297297

298-
The `exportEntries` property in `package.json`s `bundler` was used to produce the `index.js` build output from `src/index.ts`. It was compatible with Node.js, rather than strictly with browsers. This build configuration could cause subtle bugs when addon authors exported code in `index.js` for use in the Storybook preview or manager.
298+
The `exportEntries` property in `package.json`'s `bundler` was used to produce the `index.js` build output from `src/index.ts`. It was compatible with Node.js, rather than strictly with browsers. This build configuration could cause subtle bugs when addon authors exported code in `index.js` for use in the Storybook preview or manager.
299299

300300
In the Storybook 10 [addon-kit](https://github.com/storybookjs/addon-kit), we removed `exportEntries` from the `bundler` config, and we moved `src/index.ts` to be part of `previewEntries` instead. This way, any code exported from `src/index.ts` is bundled for browsers and usable with CSF 4. If you need to export additional code to run in the preview (such as optional decorators), you can add them to `src/index.ts`.
301301

0 commit comments

Comments
 (0)