Skip to content

Commit 3591f57

Browse files
authored
feat(lib): cjs instead of umd as default format for multiple entries (#10315)
1 parent ed613bb commit 3591f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/build-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Options to pass on to [@rollup/plugin-dynamic-import-vars](https://github.com/ro
148148
- **Type:** `{ entry: string | string[] | { [entryAlias: string]: string }, name?: string, formats?: ('es' | 'cjs' | 'umd' | 'iife')[], fileName?: string | ((format: ModuleFormat, entryName: string) => string) }`
149149
- **Related:** [Library Mode](/guide/build#library-mode)
150150
151-
Build as a library. `entry` is required since the library cannot use HTML as entry. `name` is the exposed global variable and is required when `formats` includes `'umd'` or `'iife'`. Default `formats` are `['es', 'umd']`. `fileName` is the name of the package file output, default `fileName` is the name option of package.json, it can also be defined as function taking the `format` and `entryAlias` as arguments.
151+
Build as a library. `entry` is required since the library cannot use HTML as entry. `name` is the exposed global variable and is required when `formats` includes `'umd'` or `'iife'`. Default `formats` are `['es', 'umd']`, or `['es', 'cjs']`, if multiple entries are used. `fileName` is the name of the package file output, default `fileName` is the name option of package.json, it can also be defined as function taking the `format` and `entryAlias` as arguments.
152152
153153
## build.manifest
154154

0 commit comments

Comments
 (0)