Skip to content

Shakedown / Bundle hybrid #24

Description

@divmain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions