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

  1. Locate the Storybook configuration file in the Varbase Project
  2. Review the webpackFinal configuration section
  3. 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

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • chore(tooling): #3585811 Remove deprecated Storybook blocks alias from Varbase Project configuration

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 4a9317fe on 11.0.x
    chore(tooling): #3585811 Remove deprecated Storybook blocks alias from...

  • rajab natshah committed 5decb9a9 on 11.0.x
    chore(tooling): #3585811 Remove deprecated Storybook blocks alias from...

  • rajab natshah committed ed5b92db on 11.0.x
    chore(tooling): #3585811 Remove deprecated Storybook blocks alias from...
rajab natshah’s picture

Assigned: rajab natshah » josebc
Status: Active » Needs review
rajab natshah’s picture

Assigned: josebc » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • rajab natshah committed 95e33ad9 on 11.0.x
    chore(tooling): #3585811 optimization round for the Storybook and...
rajab natshah’s picture

Issue tags: +varbase-11.0.0-alpha1
rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed f85d48f1 on 11.0.x
    chore(tooling): #3585811 optimization round for the Storybook and...

  • rajab natshah committed 880e0bb5 on 11.0.x
    chore(tooling): #3585811 optimization round for the Storybook and...