Skip to content

Commit ea06eea

Browse files
committed
docs: add document for RenderedModule (#9147)
refs vitejs/vite#22096 (comment)
1 parent 8559e64 commit ea06eea

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/rolldown/src/types/rolldown-output.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,21 @@ export interface SourceMap {
3838

3939
/** @category Plugin APIs */
4040
export interface RenderedModule {
41+
/**
42+
* The rendered code of this module.
43+
*
44+
* The unused variables and functions are removed.
45+
*/
4146
readonly code: string | null;
47+
/**
48+
* The length of the rendered code of this module.
49+
*/
4250
renderedLength: number;
51+
/**
52+
* The list of exported names from this module.
53+
*
54+
* The names that are not used are not included.
55+
*/
4356
renderedExports: string[];
4457
}
4558

0 commit comments

Comments
 (0)