Repository navigation
Conversation
Only the entrypoints to inner modules now calculate the chart data
It no longer functions the same as chartData fetching was moved to higher layers.
Move chart data calculation to source code edges
With this step, building and testing works but linting does not yet.
Setup Lerna monorepo, splitting reporter to new package
This was a blooper done in 14b6356
Switch lerna and yarn to use workspaces
This was referenced Oct 1, 2017
1 task done
valscion
commented
Feb 4, 2018
| branches: | ||
| only: | ||
| - master | ||
| - version-3 |
Collaborator
Author
There was a problem hiding this comment.
This will need to be removed right before merging. This is needed here so that branches against this version-3 branch have their tests ran in CI. See #143 (comment)
* Extract Logger class to own package * Add README.md for logger package
Collaborator
Author
|
I think I might get to this again at some point, but this branch has lived for long enough so far that continuing from here would cause undue hassle. I'll close this PR for now. |
Closed
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.
This is a tracking PR for getting to version 3.
What? What is version 3?
Version 3 will split the reporting UI (the treemap reporter) from the webpack code.
This allows users to create any kind of reporter, while the webpack plugin and CLI would provide the raw data containing post-minification and gzipped sizes.
How can you help?
Please leave me a comment on your thoughts on this idea, or even add a reaction to this PR description so I could see how many are interested in this at all.
How did I come up with this idea?
The thing that started this eventual process was an experimental PR #25 — I wanted to see if I could add a sunburst chart visualizer to
webpack-bundle-analyzeralongside the treemap visualizer.It seems that I wasn't the only one, @bitpshr had also done a much more finished version of a sunburst chart:
And sunbursts are just one possible visualizer. What about a VR-based bundle content visualizer? https://twitter.com/ken_wheeler/status/872939627656728578
What has happened before this PR?
I have figured out how
webpack-bundle-analyzerworks and pondered what would be the best approach to have a custom reporter.And then me and @th0r figured that the best solution would be to split analyzer from the treemap UI code: #32
I've tested various different approaches to this problem: #40 (with explanation in #32 (comment)), a proof of concept of this in valscion#1 and generally just figuring things out.
Architectural changes
This repository is converted to a monorepo (like Babel), and the maintenance work is handled with Lerna.
New packages (to be) created:
webpack-bundle-analyzerplugin works to help in migrationThese package splits are still not set in stone, and I'll evaluate the best choices for split points as I go.
TODO (that will change as I think things through)
I intend to work on this by creating new PRs for distinct features that point to this branch instead of
master. This way I can work in smaller steps, and hopefully have more focused PRs.buildautomatically for all packages before publishing new versionsNice things to have:
chartDataboundaries, and use the same types in reporter and pluginreporterOptionswhich reporters themselves can use