Skip to content

refactor(storybook-builder): import addon previews by absolute path - #3243

Open
web-padawan wants to merge 1 commit into
masterfrom
refactor/storybook-builder-paths
Open

web-padawan wants to merge 1 commit into
masterfrom
refactor/storybook-builder-paths

Conversation

@web-padawan

@web-padawan web-padawan commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What I did

  1. Imported addon preview annotations by their absolute path instead of bare in generate-app-script.ts.

Storybook 10 sets bare to a file path below node_modules, such as @storybook/addon-a11y/dist/preview.js. The addon does not export that path, so the import fails. @storybook/builder-vite 10 also uses absolute. The project preview file already loads by absolute path.

Part of #2989. The change works on Storybook 9, so it can ship before the major release.

@changeset-bot

changeset-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: add0504

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/storybook-builder Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@web-padawan
web-padawan requested a review from bashmish November 18, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant