Skip to content

Commit 1cc4e8c

Browse files
committed
docs(en): merging all conflicts
2 parents e9e5c70 + 3591f57 commit 1cc4e8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/build-options.md

+4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ Git LFS 占位符会自动排除在内联之外,因为它们不包含它们所
148148
- **类型:** `{ entry: string | string[] | { [entryAlias: string]: string }, name?: string, formats?: ('es' | 'cjs' | 'umd' | 'iife')[], fileName?: string | ((format: ModuleFormat, entryName: string) => string) }`
149149
- **相关内容:** [库模式](/guide/build#library-mode)
150150
151+
<<<<<<< HEAD
151152
构建为库。`entry` 是必需的,因为库不能使用 HTML 作为入口。`name` 则是暴露的全局变量,在 `formats` 包含 `'umd'``'iife'` 时是必需的。默认 `formats``['es', 'umd']``fileName` 是输出的包文件名,默认 `fileName``package.json``name` 选项,同时,它还可以被定义为参数为 `format``entryAlias` 的函数。
153+
=======
154+
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.
155+
>>>>>>> 3591f5766ca52c91582072b639893f5fab01d49a
152156
153157
## build.manifest {#build-manifest}
154158

0 commit comments

Comments
 (0)