Skip to content

SB10 (ESM-only)#272

Merged
ndelangen merged 15 commits intonextfrom
norbert/sb10
Oct 28, 2025
Merged

SB10 (ESM-only)#272
ndelangen merged 15 commits intonextfrom
norbert/sb10

Conversation

@ndelangen
Copy link
Copy Markdown
Member

No description provided.

@ndelangen ndelangen added the major Increment the major version when merged label Sep 17, 2025
@ndelangen ndelangen self-assigned this Sep 17, 2025
@ndelangen ndelangen added the dependencies Update one or more dependencies version label Sep 17, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the Storybook addon from CommonJS/dual-format to ESM-only, targeting Storybook version 10. The migration removes CommonJS support entirely and updates dependencies to use newer Storybook versions.

  • Converts the build configuration to output only ESM format
  • Updates module resolution to use ESM imports and removes CommonJS require statements
  • Upgrades Storybook dependencies from v9 to v10 and consolidates them at the workspace level

Reviewed Changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/storybook-addon-designs/tsup.config.ts Changes build output from dual ESM/CJS to ESM-only
packages/storybook-addon-designs/package.json Updates package to ESM type and adjusts exports to remove CJS support
packages/storybook-addon-designs/src/preset.ts Replaces require.resolve with ESM import.meta.resolve
packages/storybook-addon-designs/src/manager/register.tsx Removes JSX pragma and adds explicit React import
packages/storybook-addon-designs/src/index.ts Removes webpack hot module replacement code
packages/storybook-addon-designs/preset.js Removes CJS preset wrapper file
packages/examples/ Updates examples to use Storybook v10 with Vite framework
package.json Consolidates dependencies at workspace level and upgrades Storybook to v10

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/storybook-addon-designs/package.json Outdated
Comment thread packages/storybook-addon-designs/tsconfig.json Outdated
Comment thread packages/examples/tsconfig.json
@ndelangen ndelangen changed the base branch from master to next September 18, 2025 08:07
Comment thread package.json
Comment thread packages/examples/.storybook/main.ts
@ndelangen ndelangen merged commit fb89f13 into next Oct 28, 2025
2 checks passed
@ndelangen ndelangen deleted the norbert/sb10 branch October 28, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update one or more dependencies version major Increment the major version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants