Skip to content

Commit 5e56614

Browse files
authored
docs: correct variable name in build.lib.fileName option description (#18197)
1 parent 08ff233 commit 5e56614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/config/build-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Options to pass on to [@rollup/plugin-dynamic-import-vars](https://github.com/ro
166166
- **Type:** `{ entry: string | string[] | { [entryAlias: string]: string }, name?: string, formats?: ('es' | 'cjs' | 'umd' | 'iife')[], fileName?: string | ((format: ModuleFormat, entryName: string) => string) }`
167167
- **Related:** [Library Mode](/guide/build#library-mode)
168168

169-
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.
169+
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 `entryName` as arguments.
170170

171171
## build.manifest
172172

0 commit comments

Comments
 (0)