Skip to content
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

feat: generate the analyze bundle for vite #3096

Merged
merged 2 commits into from
Aug 31, 2023
Merged

feat: generate the analyze bundle for vite #3096

merged 2 commits into from
Aug 31, 2023

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Aug 31, 2023

Summary

Adds the bundle analyse tool from vite

You can run it by executing:

ANALYZE_BUNDLE=true ANALYZE_BUNDLE_TEMPLATE=sunburst yarn build

Options: "sunburst" | "treemap" | "network" | "raw-data" | "list"

Example on sunburst:
image

@vercel
Copy link

vercel bot commented Aug 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview Aug 31, 2023 2:04pm

🌃 Cosmos ↗︎

@anxolin anxolin requested a review from a team August 31, 2023 13:49
@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
rollup-plugin-visualizer 5.9.2 filesystem +0 537 kB btd

@@ -19,7 +19,8 @@
"prebuild": "nx run cowswap-frontend:i18n",
"postbuild": "rm -rf build && mkdir build && mv dist/apps/cowswap-frontend/* build",
"prepare": "husky install",
"postinstall": "yarn run patch-package"
"postinstall": "yarn run patch-package",
"analyze-build": "cross-env ANALYZE_BUNDLE=true ANALYZE_BUNDLE_TEMPLATE=sunburst yarn build"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I added a command to make it easier to run it

@alfetopito alfetopito merged commit 7611a3d into develop Aug 31, 2023
7 checks passed
@alfetopito alfetopito deleted the analyze-vite branch August 31, 2023 14:10
@github-actions github-actions bot locked and limited conversation to collaborators Aug 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants