Skip to content

Commit

Permalink
docs: fix output.externals type (#2955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Jul 18, 2024
1 parent 73c8f7e commit 28b93a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/config/output/externals.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# output.externals

- **Type:** `string | object | function | RegExp`
- **Type:** `string | object | function | RegExp | Array<string | object | function | RegExp>`
- **Default:** `undefined`

At build time, prevent some `import` dependencies from being packed into bundles in your code, and instead fetch them externally at runtime.
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/config/output/externals.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# output.externals

- **类型:** `string | object | function | RegExp`
- **类型:** `string | object | function | RegExp | Array<string | object | function | RegExp>`
- **默认值:** `undefined`

在构建时,防止将代码中某些 `import` 的依赖包打包到 bundle 中,而是在运行时再去从外部获取这些依赖。
Expand Down

0 comments on commit 28b93a4

Please sign in to comment.