#算法 #包裹 #备选

应用 软件包

软件包算法

1 个不稳定版本

0.1.1 2024年7月19日
0.1.0 2024年7月4日

120压缩

Download history 106/week @ 2024-06-30 5/week @ 2024-07-07 106/week @ 2024-07-14 17/week @ 2024-07-21 6/week @ 2024-07-28 1/week @ 2024-08-04

130 每月下载量

MIT 许可证

10KB
220

软件包算法

受 Webpack 和 Parcel 启发。

alt text

chunk_graph: digraph {
    0 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(0)] }, in_chunk_groups: RefCell { value: [NodeIndex(0)] }, size: 10 }] }, children: [], size: 10 }" ]
    1 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(3)] }, in_chunk_groups: RefCell { value: [NodeIndex(1)] }, size: 10 }] }, children: [], size: 10 }" ]
    2 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(8), NodeIndex(5), NodeIndex(7)] }, in_chunk_groups: RefCell { value: [NodeIndex(2)] }, size: 10 }] }, children: [], size: 10 }" ]
    3 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(4)] }, in_chunk_groups: RefCell { value: [NodeIndex(3)] }, size: 10 }] }, children: [], size: 10 }" ]
    4 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(1)] }, in_chunk_groups: RefCell { value: [NodeIndex(4)] }, size: 20 }] }, children: [], size: 20 }" ]
    5 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(6), NodeIndex(7)] }, in_chunk_groups: RefCell { value: [NodeIndex(5)] }, size: 10 }] }, children: [], size: 10 }" ]
    6 [ label = "ChunkGroup { chunks: RefCell { value: [Chunk { modules: RefCell { value: [NodeIndex(2)] }, in_chunk_groups: RefCell { value: [NodeIndex(6)] }, size: 30 }] }, children: [], size: 30 }" ]
    0 -> 1 [ label = "ChunkGroupConnection { origin: NodeIndex(0), target: NodeIndex(1) }" ]
    1 -> 2 [ label = "ChunkGroupConnection { origin: NodeIndex(1), target: NodeIndex(2) }" ]
    4 -> 5 [ label = "ChunkGroupConnection { origin: NodeIndex(4), target: NodeIndex(5) }" ]
}

依赖项

~2MB
~29K SLoC