Revert "Replace: Use empathic over find-up"#32470
Merged
Merged
Conversation
|
View your CI Pipeline Execution ↗ for commit 275c2c0
☁️ Nx Cloud last updated this comment at |
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 11 | 11 | 0 |
| Self size | 319 KB | 374 KB | 🚨 +55 KB 🚨 |
| Dependency size | 1.30 MB | 1.30 MB | 0 B |
| Bundle Size Analyzer | Link | Link |
storybook
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 48 | 48 | 0 |
| Self size | 30.49 MB | 30.42 MB | 🎉 -79 KB 🎉 |
| Dependency size | 17.64 MB | 17.64 MB | 0 B |
| Bundle Size Analyzer | Link | Link |
@storybook/html-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 14 | 14 | 0 |
| Self size | 23 KB | 23 KB | 🚨 +18 B 🚨 |
| Dependency size | 1.66 MB | 1.71 MB | 🚨 +55 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/nextjs-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 124 | 130 | 🚨 +6 🚨 |
| Self size | 4.00 MB | 4.00 MB | 0 B |
| Dependency size | 21.56 MB | 21.66 MB | 🚨 +94 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/preact-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 14 | 14 | 0 |
| Self size | 14 KB | 14 KB | 0 B |
| Dependency size | 1.64 MB | 1.70 MB | 🚨 +55 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/react-native-web-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 157 | 163 | 🚨 +6 🚨 |
| Self size | 31 KB | 31 KB | 0 B |
| Dependency size | 22.95 MB | 23.05 MB | 🚨 +94 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/react-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 114 | 120 | 🚨 +6 🚨 |
| Self size | 36 KB | 36 KB | 🚨 +25 B 🚨 |
| Dependency size | 19.51 MB | 19.60 MB | 🚨 +94 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/svelte-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 22 | 22 | 0 |
| Self size | 59 KB | 59 KB | 0 B |
| Dependency size | 26.89 MB | 26.95 MB | 🚨 +55 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/sveltekit
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 23 | 23 | 0 |
| Self size | 49 KB | 49 KB | 0 B |
| Dependency size | 26.95 MB | 27.01 MB | 🚨 +55 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/vue3-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 109 | 110 | 🚨 +1 🚨 |
| Self size | 38 KB | 38 KB | 🚨 +77 B 🚨 |
| Dependency size | 43.76 MB | 43.82 MB | 🚨 +64 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/web-components-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 15 | 15 | 0 |
| Self size | 20 KB | 20 KB | 0 B |
| Dependency size | 1.68 MB | 1.74 MB | 🚨 +55 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/cli
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 205 | 205 | 0 |
| Self size | 883 KB | 886 KB | 🚨 +3 KB 🚨 |
| Dependency size | 81.79 MB | 81.71 MB | 🎉 -72 KB 🎉 |
| Bundle Size Analyzer | Link | Link |
@storybook/codemod
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 174 | 174 | 0 |
| Self size | 35 KB | 35 KB | 0 B |
| Dependency size | 76.86 MB | 76.78 MB | 🎉 -76 KB 🎉 |
| Bundle Size Analyzer | Link | Link |
create-storybook
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 49 | 49 | 0 |
| Self size | 1.52 MB | 1.52 MB | 🚨 +5 KB 🚨 |
| Dependency size | 48.13 MB | 48.06 MB | 🎉 -79 KB 🎉 |
| Bundle Size Analyzer | node | node |
@storybook/preset-react-webpack
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 170 | 170 | 0 |
| Self size | 21 KB | 26 KB | 🚨 +6 KB 🚨 |
| Dependency size | 30.84 MB | 30.84 MB | 🚨 +3 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
This was referenced Sep 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #31338
I want to do a beta release without this change first.
I'll re-apply it later.
Greptile Summary
Updated On: 2025-09-16 09:48:16 UTC
This PR reverts the comprehensive replacement of the
empathicpackage with traditional utility packages across the entire Storybook codebase. The original change (PR #31338) attempted to consolidate multiple file system utility packages (find-up,find-cache-dir,resolve-from,fd-package-json,read-pkg-up) with the singleempathicpackage for improved performance and reduced bundle size.The revert affects critical infrastructure throughout Storybook:
Package Manager Integration: All package manager proxies (NPM, Yarn1, Yarn2, PNPM, BUN) revert from
empathic/findandempathic/packageback to their original dependencies for package.json discovery and module resolution.Framework Presets: Angular, React, Vue3, and Ember frameworks restore their original file resolution patterns using
find-upfor locating configuration files like tsconfig.json and package.json files.Build System: Vite and Webpack builders revert cache directory resolution from
empathic/packageback tofind-cache-dir, and TypeScript configuration discovery returns to usingfind-up.CLI and Initialization: The create-storybook CLI, project detection, framework detection, and Vitest integration all revert to their original async file discovery patterns using
find-up.API Changes: The revert introduces several key API differences -
empathic's synchronous operations become asynchronous again (requiringawaitkeywords), parameter names change (e.g.,lastbecomesstopAt), and some functionality likefindFilesUpwith glob support is removed entirely.Testing: All corresponding test files update their mocks to match the reverted implementations, ensuring test coverage remains intact.
The changes maintain functional equivalence while reverting to the well-established, battle-tested utility packages that were previously used throughout the Storybook ecosystem.
Confidence score: 4/5