Skip to content

Commit

Permalink
chore: reduce build options lib diff
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Aug 24, 2024
1 parent 2207c89 commit 8c307e0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ export interface BuildEnvironmentOptions {
* @default false
*/
manifest?: boolean | string
/**
* Build in library mode. The value should be the global name of the lib in
* UMD mode. This will produce esm + cjs + umd bundle formats with default
* configurations that are suitable for distributing libraries.
* @default false
*/
lib?: LibraryOptions | false
/**
* Produce SSR oriented build. Note this requires specifying SSR entry via
* `rollupOptions.input`.
Expand Down Expand Up @@ -262,14 +269,6 @@ export interface BuildEnvironmentOptions {
name: string,
config: ResolvedConfig,
) => Promise<BuildEnvironment> | BuildEnvironment

/**
* Build in library mode. The value should be the global name of the lib in
* UMD mode. This will produce esm + cjs + umd bundle formats with default
* configurations that are suitable for distributing libraries.
* @default false
*/
lib?: LibraryOptions | false
}

export type BuildOptions = BuildEnvironmentOptions
Expand Down

0 comments on commit 8c307e0

Please sign in to comment.