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

Better analytics tools in v2 #2083

Open
nonzzz opened this issue Feb 10, 2025 · 2 comments
Open

Better analytics tools in v2 #2083

nonzzz opened this issue Feb 10, 2025 · 2 comments
Labels
enhancement: pending triage Untriaged enhancement

Comments

@nonzzz
Copy link

nonzzz commented Feb 10, 2025

What problem does this feature solve?

TL;DR

It cost my weekend to know how farm work. I'm currently interested in @farmfe/js-plugin-visualizer so i plan to do some working in v2. But in my opinion, the current client and server isn't ready for production. I think is better to be make a new one, but i hope it's in the official repo.

Plan

  • I will provide a simple useful sdk in vite-bundle-analyzer. Now i made it in my local.

  • Let server do more things instead of the client. (such as data convert, data transform)

  • A lighter client.

Others

Some of the current designs make me feel that it is not easy to maintain based on it.

What does the proposed API look like?

None

@nonzzz nonzzz added the enhancement: pending triage Untriaged enhancement label Feb 10, 2025
@wre232114
Copy link
Member

wre232114 commented Feb 10, 2025

@farmfe/js-plugin-visualizer does need to be refactored in v2. It should contain following abilities:

  • bundle analyzer like vite or webpack bundle analyzer
  • plugin hooks visualizer like vite visiualizer or rsdoctor, which can observe the internal state of the compilation process
  • performance analyzer, which can visualize the compilation process and find out performance bottleneck

You can build primitive packages of these abilities and integrated them into farm repo. Contribution is fully welcome!

@nonzzz
Copy link
Author

nonzzz commented Feb 10, 2025

I will create a PR but the process will be long because I am not satisfied with the current design. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement: pending triage Untriaged enhancement
Projects
None yet
Development

No branches or pull requests

2 participants