From 4ab0e4828d753cf124b93ed04dfaf6c0c6b65103 Mon Sep 17 00:00:00 2001 From: fi3ework Date: Sat, 13 Jul 2024 03:05:06 +0800 Subject: [PATCH 1/2] v0.0.7 --- packages/builder-rsbuild/package.json | 2 +- packages/react-rsbuild/package.json | 2 +- packages/vue3-rsbuild/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder-rsbuild/package.json b/packages/builder-rsbuild/package.json index a1e2125..3f75234 100644 --- a/packages/builder-rsbuild/package.json +++ b/packages/builder-rsbuild/package.json @@ -1,6 +1,6 @@ { "name": "storybook-builder-rsbuild", - "version": "0.0.6", + "version": "0.0.7", "description": "Rsbuild builder for Storybook", "keywords": [ "storybook", diff --git a/packages/react-rsbuild/package.json b/packages/react-rsbuild/package.json index bcc945b..302e20c 100644 --- a/packages/react-rsbuild/package.json +++ b/packages/react-rsbuild/package.json @@ -1,6 +1,6 @@ { "name": "storybook-react-rsbuild", - "version": "0.0.6", + "version": "0.0.7", "description": "Storybook for React and Rsbuild: Develop React components in isolation with Hot Reloading.", "keywords": [ "storybook", diff --git a/packages/vue3-rsbuild/package.json b/packages/vue3-rsbuild/package.json index 7c5f273..56ad992 100644 --- a/packages/vue3-rsbuild/package.json +++ b/packages/vue3-rsbuild/package.json @@ -1,6 +1,6 @@ { "name": "storybook-vue3-rsbuild", - "version": "0.0.6", + "version": "0.0.7", "description": "Storybook for Vue3 and Rsbuild: Develop React Component in isolation with Hot Reloading.", "keywords": [ "storybook", From d87c40adc3356f1bdcb37b512b0918abca6913f8 Mon Sep 17 00:00:00 2001 From: fi3ework Date: Sat, 13 Jul 2024 03:16:44 +0800 Subject: [PATCH 2/2] docs: v0.7 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95c910e..dcc2971 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,10 @@ The repository contains the Storybook Rsbuild builder and framework integrations ## Usage > [!NOTE] -> Requirements: `@rsbuild/core >= 0.7.0` and `storybook >= 8.0` (checkout Storybook's [release note](https://storybook.js.org/blog/storybook-8/) for migration) +> Requirements: +> +> - **`@rsbuild/core >= 1.0.0-alpha.9`**: Rsbuild is going to ship 1.0.0 version and the alpha version is reliable for now. (checkout Rsbuild's [1.0.0 breaking changes](https://github.com/web-infra-dev/rsbuild/discussions/2508)) +> - **`storybook >= 8.2.1`**: Storybook made some internal refactor in major version, 8.2.1 is tested out. (checkout Storybook's [release note](https://storybook.js.org/blog/storybook-8/) for migrating from v7) In Storybook v8, you don't need to manually install storybook-builder-rsbuild, it has been depended by the framework, such as `storybook-react-rsbuild` and `storybook-vue3-rsbuild`. @@ -119,6 +122,9 @@ The function should return the updated Rsbuild configuration. ### Error caused by bundling unexpected files +> [!IMPORTANT] +> Rspack starts to support `webpackInclude` magic comment, this trouble won't exists since 0.0.7 + Because Rspack temporarily does not support the `webpackInclude` magic comment, non-story files may be bundled, which could lead to build failures. These files can be ignored using `rspack.IgnorePlugin` (see exmaple https://github.com/rspack-contrib/storybook-rsbuild/issues/19). ```js