File tree Expand file tree Collapse file tree
rspack_binding_values/src
rspack_core/src/chunk_graph Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export declare class JsChunk {
7272export declare class JsChunkGraph {
7373 getChunkModules ( chunk : JsChunk ) : JsModule [ ]
7474 getChunkEntryModules ( chunk : JsChunk ) : JsModule [ ]
75- getNumberOfChunkEntryModules ( chunk : JsChunk ) : number
75+ getNumberOfEntryModules ( chunk : JsChunk ) : number
7676 getChunkEntryDependentChunksIterable ( chunk : JsChunk ) : JsChunk [ ]
7777 getChunkModulesIterableBySourceType ( chunk : JsChunk , sourceType : string ) : JsModule [ ]
7878 getModuleChunks ( module : JsModule ) : JsChunk [ ]
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ impl JsChunkGraph {
6262 }
6363
6464 #[ napi( ts_return_type = "number" ) ]
65- pub fn get_number_of_chunk_entry_modules ( & self , chunk : & JsChunk ) -> Result < u32 > {
65+ pub fn get_number_of_entry_modules ( & self , chunk : & JsChunk ) -> Result < u32 > {
6666 let compilation = self . as_ref ( ) ?;
6767
6868 Ok (
6969 compilation
7070 . chunk_graph
71- . get_number_of_chunk_entry_modules ( & chunk. chunk_ukey ) as u32 ,
71+ . get_number_of_entry_modules ( & chunk. chunk_ukey ) as u32 ,
7272 )
7373 }
7474
Original file line number Diff line number Diff line change @@ -215,13 +215,6 @@ impl ChunkGraph {
215215 chunk_graph_chunk. entry_modules . keys ( ) . copied ( ) . collect ( )
216216 }
217217
218- pub fn get_number_of_chunk_entry_modules ( & self , chunk_ukey : & ChunkUkey ) -> usize {
219- self
220- . expect_chunk_graph_chunk ( chunk_ukey)
221- . entry_modules
222- . len ( )
223- }
224-
225218 pub fn get_chunk_entry_modules_with_chunk_group_iterable (
226219 & self ,
227220 chunk_ukey : & ChunkUkey ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class ChunkGraph {
3333 }
3434
3535 getNumberOfEntryModules ( chunk : Chunk ) : number {
36- return this . #inner. getNumberOfChunkEntryModules ( Chunk . __to_binding ( chunk ) ) ;
36+ return this . #inner. getNumberOfEntryModules ( Chunk . __to_binding ( chunk ) ) ;
3737 }
3838
3939 getChunkEntryDependentChunksIterable ( chunk : Chunk ) : Iterable < Chunk > {
You can’t perform that action at this time.
0 commit comments