alex-streza / alex-streza/code-preview

Storybook 10 support

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
5
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# Storybook 10 support

Hi there! 👋

The Storybook team is excited to announce that Storybook 10.0.0 is coming soon with one major breaking change: Storybook is switching to ESM-only! For addons, this means simpler build scripts and an easier maintenance going forward.

## What's changing?

The key changes that affect addon authors are:
1. Addon build scripts must output ESM-only
2. Some files in your addon repository must be changed to support ESM-only

## What do you need to do?

1. Review the [addon migration guide](https://storybook.js.org/docs/10/addons/addon-migration-guide)
2. Adjust your repository following the guide's recommendations
3. Update your addon's dependencies:
```jsonc
{
"peerDependencies": {
// Keep it at *.0.0 for broader compatibility
"storybook": "^10.0.0"
},
"devDependencies": {
// You can also use 'next' if you always want to use prereleases
"storybook": "^10.0.0"
}
}
```
4. Test your addon with the prerelease version:
```bash
npm install --save-dev storybook@next
```

## Need help?
- Join the `#addons` channel on the [Storybook Discord](https://discord.gg/storybook) for support
- Report any issues [here](https://github.com/storybookjs/storybook/issues)

Please let us know if you plan to support Storybook 10 or if you need any assistance with the migration. Your addon is an important part of the Storybook ecosystem and we're here to help! 🙏

If you don't have time to update your addon to Storybook 10, please consider finding coworkers or contributors who can help you maintain it. The [storybook-community](https://github.com/storybook-community) can provide support to contributors who volunteer to take over unmaintained addons.

---

*This issue was created as part of our outreach to help the addon ecosystem upgrade to Storybook 10. If you have any feedback about this process or would like to opt-out from future outreach, please [let us know on Discord](https://discord.gg/storybook).*

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.