You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like an "easy" way to get started with Storybook.
We used to do everything in webpack but due to performance issues we moved our Storybook config from Webpack to Vite.
Since discovering rsbuild, we've seamlessly migrated all of our webpack configuration - it was a genuine joy to do!
But we've struggled with how to remove the Vite config for Storybook. Trying to understand the rspack config for our rsbuild has helped (using rsbuild inspect), but we've not been able to completely get it so far.
A plugin for Storybook to support rsbuild would be awesome.
What does the proposed API look like?
I think the perfect solution for us would look something like this (this is a Storybook main.ts example
const config: StorybookConfig = {
framework: {
name: "@storybook/react-rsbuild",
options: {
// Our Storybook configuration isn't in the same folder as our rsbuild. We currently tell rsbuild where to look
// for a config file.
rsbuildConfigFile: "../path/to/rsbuild.config.ts"
},
},
rsbuildFinal: (config, { configType }) => {
// Some way of modifying the rsbuild if necessary
},
};
export default config;
It would be inspired by the work going on for rspack, e.g.:
What problem does this feature solve?
We would like an "easy" way to get started with Storybook.
We used to do everything in webpack but due to performance issues we moved our Storybook config from Webpack to Vite.
Since discovering rsbuild, we've seamlessly migrated all of our webpack configuration - it was a genuine joy to do!
But we've struggled with how to remove the Vite config for Storybook. Trying to understand the rspack config for our rsbuild has helped (using
rsbuild inspect
), but we've not been able to completely get it so far.A plugin for Storybook to support rsbuild would be awesome.
What does the proposed API look like?
I think the perfect solution for us would look something like this (this is a Storybook
main.ts
exampleIt would be inspired by the work going on for
rspack
, e.g.:The text was updated successfully, but these errors were encountered: