-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite: Include node_modules
in stats file
#30711
base: next
Are you sure you want to change the base?
Conversation
node_modules
in stats file
View your CI Pipeline Execution ↗ for commit 6453a71.
☁️ Nx Cloud last updated this comment at |
node_modules
in stats filenode_modules
in stats file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great in my tests, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
Before | After | Difference | |
---|---|---|---|
Dependency count | 131 | 131 | 0 |
Self size | 23 KB | 23 KB | 0 B |
Dependency size | 36.43 MB | 36.55 MB | 🚨 +124 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/sveltekit
Before | After | Difference | |
---|---|---|---|
Dependency count | 139 | 139 | 0 |
Self size | 48 KB | 48 KB | 0 B |
Dependency size | 39.74 MB | 39.86 MB | 🚨 +124 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/vue3-vite
Before | After | Difference | |
---|---|---|---|
Dependency count | 104 | 104 | 0 |
Self size | 17 KB | 17 KB | 0 B |
Dependency size | 42.61 MB | 42.73 MB | 🚨 +124 KB 🚨 |
Bundle Size Analyzer | Link | Link |
As requested by @jmhobbs
What I did
Changed the filter so
node_modules
are also included in thepreview-stats.json
output on build, similar to how it is in Webpack today. This allows TurboSnap to be more granular on a per-package level instead of just bailing whenever a single package dependency has changed.I did a comparison of the changes for our own internal Storybook:
node_modules
node_modules
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli-storybook/src/sandbox-templates.ts
Make sure this PR contains one of the labels below:
Available labels
bug
: Internal changes that fixes incorrect behavior.maintenance
: User-facing maintenance tasks.dependencies
: Upgrading (sometimes downgrading) dependencies.build
: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup
: Minor cleanup style change. Will not show up in release changelog.documentation
: Documentation only changes. Will not show up in release changelog.feature request
: Introducing a new feature.BREAKING CHANGE
: Changes that break compatibility in some way with current major version.other
: Changes that don't fit in the above categories.🦋 Canary release
This pull request has been released as version
0.0.0-pr-30711-sha-c594b56f
. Try it out in a new sandbox by runningnpx [email protected] sandbox
or in an existing project withnpx [email protected] upgrade
.More information
0.0.0-pr-30711-sha-c594b56f
jeppe/include-node-modules-in-stats-json
c594b56f
1740691909
)To request a new release of this pull request, mention the
@storybookjs/core
team.core team members can create a new canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=30711
Greptile Summary
This PR modifies the Vite builder to include
node_modules
dependencies in the stats file output, enabling more granular tracking of dependencies for TurboSnap.code/builders/builder-vite/src/plugins/webpack-stats-plugin.ts
to remove the filter that excluded node_modules from the stats output