The default Vite and webpack builders in Storybook use relative paths for references, whereas Rsbuild does not recommend using relative paths for deployment (See the tips). Therefore, if you want to deploy Storybook on a sub-path such as https://example.com/sb-path
, you can achieve this by configuring output.assetPrefix
.
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).
getAbsolutePath
to resolve the framework in sandboxes in this repository?Check out https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments.