Skip to content

Document Snaps bundle analyzer option #1955

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

Merged
merged 8 commits into from
Apr 2, 2025
Merged

Conversation

alexandratran
Copy link
Contributor

@alexandratran alexandratran commented Apr 1, 2025

Description

  • Document Snaps bundle analyzer option yarn mm-snap build --analyze.
  • Remove mention of deprecated Browserify bundler in Learn section.
  • Minor fixes to other options.

Issue(s) fixed

Fixes #1875

Preview

https://metamask-docs-mnog1hnf3-consensys-ddffed67.vercel.app/snaps/reference/cli/subcommands/#analyze

Checklist

Complete this checklist before merging your PR:

  • If this PR contains a major change to the documentation content, I have added an entry to the top of the "What's new?" page.
  • The proposed changes have been reviewed and approved by a member of the documentation team.

@alexandratran alexandratran requested review from a team as code owners April 1, 2025 04:16
Copy link

vercel bot commented Apr 1, 2025

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

Name Status Preview Comments Updated (UTC)
metamask-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2025 8:38pm

Co-authored-by: Maarten Zuidhoorn <[email protected]>
Mrtenz
Mrtenz previously approved these changes Apr 1, 2025
bgravenorst
bgravenorst previously approved these changes Apr 2, 2025
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

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

Added a question, otherwise lgtm

Enables analyzing the Snap [bundle](../../learn/about-snaps/files.md#bundle-file).
This uses [`webpack-bundle-analyzer`](https://github.com/webpack-contrib/webpack-bundle-analyzer) under the hood,
which creates an interactive visualization of the contents of your bundle.
The visualization is located at the port displayed in the command line output.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean something like http://localhost:<port>>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - maybe "URL" is more clear?

Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

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

lgtm

@alexandratran alexandratran merged commit 8dedd7d into main Apr 2, 2025
21 checks passed
@alexandratran alexandratran deleted the 1875-snaps-analyze-cli branch April 2, 2025 22:37
bgravenorst pushed a commit that referenced this pull request Apr 17, 2025
* Document Snaps bundle analyzer option

* Apply suggestions from code review

Co-authored-by: Maarten Zuidhoorn <[email protected]>

* edits

* add more context

* clarify analyzer url

---------

Co-authored-by: Maarten Zuidhoorn <[email protected]>
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.

Document bundle analyser Snaps CLI option
3 participants