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

Shakedown / Bundle hybrid #24

Open
divmain opened this issue Oct 25, 2016 · 0 comments
Open

Shakedown / Bundle hybrid #24

divmain opened this issue Oct 25, 2016 · 0 comments

Comments

@divmain
Copy link
Member

divmain commented Oct 25, 2016

To illustrate the objective, take the following dependency graph.

            ┌───────┐                  
            │       │                  
            │   A   │                  
            │       │                  
            └───────┘                  
                │                      
    ┌───────────┼───────────┐          
    ▼           ▼           ▼          
┌───────┐   ┌───────┐   ┌───────┐      
│       │   │       │   │       │      
│   B   │   │   C   │   │   D   │      
│       │   │       │   │       │      
└───────┘   └───────┘   └───────┘      
                            │          
                      ┌─────┴─────┐    
                      ▼           ▼    
                  ┌───────┐   ┌───────┐
                  │       │   │       │
                  │   E   │   │   F   │
                  │       │   │       │
                  └───────┘   └───────┘
                                  │    
                                  │    
                                  ▼    
                              ┌───────┐
                              │       │
                              │   G   │
                              │       │
                              └───────┘

The D-subtree is isolated from the rest of the dependency graph. This plugin (or extension of
interlock-shakedown) should perform Rollup.js-like processing for the D-subtree only. E, F, and G
should be merged into D using the same patterns already used in interlock-shakedown and then
pruned from the tree.

This will reduce start-up times for small modules, allow for DCE on the isolated parts of the graph,
and result in smaller bundles.

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

No branches or pull requests

1 participant