Repository navigation
Move chart data calculation to source code edges - #81
Merged
Merged
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.
Collaborator
Author
|
Please review this @th0r soon so we won't have merge conflicts in the future. The changes in here should be safe for all the documented use cases. |
Collaborator
Author
|
I noticed that I had forgotten to update the I fixed that, and checked that the contents of |
Collaborator
Author
|
|
Collaborator
Author
|
I created a new major feature branch, |
8 of 12 tasks
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.
The goal of this PR was to get
src/viewer.jsto a place where it no longer requires any other internal module.This PR supercedes #40 with a much less scary refactoring. The only potentially breaking change is the undocumented usage of
require('webpack-bundle-analyzer').startexport. As it was never part of the documented API, I thought it was safe to remove instead of figuring out how to still support it.I moved
client/andviews/root level directories, that were only a concern for the reporter UI, insidereporter/root level directory. This also moved the build-time UI artefacts frompublic/toreporter/public/, cleaning up the root level folder structure a bit:I will follow-up with another PR where I will extract thesrc/viewer.jsto a completely new package, that will be created under@webpack-bundle-analyzernpm organization, and I'll name the package as@webpack-bundle-analyzer/reporter-treemap.This new package will be installed as a dependency of
webpack-bundle-analyzerso that everything will still function as before. I want the first step of cutting out the reporter to be invisible to users of this package, so that we can release a minor version upgrade without breaking any users and have less things to worry about when the reporter package can be customized.More on these later.We'll figure this out later, and use a monorepo approach :)