-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Description
This idea popped into my head from this tweet.
We should display a simple bundle which uses different types of Deps (AMD, CommonJS, Harmony), and then a top to bottom annotated walkthrough of what each part of the code is doing and why.
Would be a cool way for people to get the basic anatomy of the bundle, normal chunks, initial chunks, entry chunks, and understand what is really happening when code splitting occurs.
aladdin-add, WillieMaddox and shaodahong
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-][New Page Request]: Have a guided/annotated walkthrough of webpack output[/-][+]Guides - Annotated Walkthrough of Output[/+]rouzbeh84 commentedon Aug 10, 2017
Any movement on this? I could probably rework the below into something less fun but clearer haha
cc: @TheLarkInn @skipjack
TheLarkInn commentedon Aug 10, 2017
That might be a good place to start actually. And using even a single example would be awesome. I've even been pondering maybe a complex svg animation that shows the entire process. Just a lot of work involved heh.
skipjack commentedon Aug 10, 2017
@rouzbeh84 if you wanted to pick this up that would be great! Maybe stem from one of the simpler guides and just walk through the different bits of the output bundle?
@TheLarkInn maybe we could just start with a simple mermaid graph like the others created in #469?
skipjack commentedon Aug 26, 2017
From what I saw while inspecting a bundle in my work on the Tree Shaking guide in #1508, it seems the comments within bundles have gotten much better since when I first started using webpack. These comments are stripped out when the
UglifyJSPlugin
is included obviously, but a non-minified bundle could actually be fairly intuitive to go through. Maybe the guide could just jump through the bundle based on the comments and elaborate on each section.skipjack commentedon Sep 9, 2017
Ok I'm going to close for a few reasons...
With all that said, if someone disagrees with the points above, wants to re-open this, has the time to tackle it so it doesn't remain stagnant then I'm open to it. For the outdated reason above I do think this article may make more sense as a blog post than core documentation.
skipjack commentedon Sep 9, 2017
Also marked with the
reconsider
label so once we're done with the reviews and infrastructure cleanup we could easily consider revisiting this.