unjs / unbuild

๐Ÿ“ฆ An unified javascript build system
MIT License
2.19k stars 84 forks source link

docs: add jsdocs #363

Closed RSS1102 closed 4 weeks ago

RSS1102 commented 5 months ago

close #219

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

๐Ÿ“ Checklist

RSS1102 commented 5 months ago

https://github.com/unjs/unbuild/blob/main/src/types.ts#L94-L104

export interface BuildContext {
   ...
  buildEntries: {
    path: string;
    bytes?: number;
    exports?: string[];
    chunks?: string[];
    chunk?: boolean;
    modules?: { id: string; bytes: number }[];
  }[];
  usedImports: Set<string>;
  warnings: Set<string>;
  hooks: Hookable<BuildHooks>;
}

I don't quite understand the significance of these things. Can you give some explanation?