Problem/Motivation
The Varbase Project Storybook configuration contains a deprecated webpack alias that was implemented as a temporary compatibility measure for Storybook 10. This alias is no longer necessary and should be removed to keep the codebase clean and maintainable.
Steps to reproduce
- Locate the Storybook configuration file in the Varbase Project
- Review the
webpackFinal configuration section
- Identify the alias mapping for
@storybook/blocks to @storybook/addon-docs/blocks
Proposed resolution
Remove the following code block from the Storybook Docs configuration:
// Alias @storybook/blocks to @storybook/addon-docs/blocks for Storybook 10
// compatibility. In v10, the separate @storybook/blocks package was merged
// into @storybook/addon-docs. MDX story files that still import from
// @storybook/blocks are resolved here.
webpackFinal: async (webpackConfig) => {
webpackConfig.resolve = webpackConfig.resolve || {};
webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias,
'@storybook/blocks': _require.resolve('@storybook/addon-docs/blocks'),
};
return webpackConfig;
},
After removal, verify that Storybook Docs renders correctly without any regressions.
Remaining tasks
- ✅ File an issue about this project
- ❌ Addition/Change/Update/Fix to this project
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Code review from 1 Varbase core team member
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
API changes
Data model changes
Release notes snippet
- chore(tooling): #3585811 Remove deprecated Storybook blocks alias from Varbase Project configuration
Comments
Comment #5
rajab natshahComment #6
rajab natshahComment #9
rajab natshahComment #10
rajab natshah