diff --git a/website/docs/en/config/lib/auto-extension.mdx b/website/docs/en/config/lib/auto-extension.mdx index 7d736367a..b83b0e4fa 100644 --- a/website/docs/en/config/lib/auto-extension.mdx +++ b/website/docs/en/config/lib/auto-extension.mdx @@ -1 +1,4 @@ # lib.autoExtension + +- **Type:** `boolean` +- **Default:** `true` diff --git a/website/docs/en/config/lib/auto-external.mdx b/website/docs/en/config/lib/auto-external.mdx index 72d46bc27..b08d6e9b3 100644 --- a/website/docs/en/config/lib/auto-external.mdx +++ b/website/docs/en/config/lib/auto-external.mdx @@ -1 +1,4 @@ # lib.autoExternal + +- **Type:** `boolean` +- **Default:** `true` diff --git a/website/docs/en/config/lib/banner.mdx b/website/docs/en/config/lib/banner.mdx index 7f8290e58..8e7f846f0 100644 --- a/website/docs/en/config/lib/banner.mdx +++ b/website/docs/en/config/lib/banner.mdx @@ -1 +1,13 @@ # lib.banner + +- **Type:** + +```ts +type Banner = { + js?: string; + css?: string; + dts?: string; +}; +``` + +- **Default:** `{}` diff --git a/website/docs/en/config/lib/bundle.mdx b/website/docs/en/config/lib/bundle.mdx index da9ef7c32..be149608a 100644 --- a/website/docs/en/config/lib/bundle.mdx +++ b/website/docs/en/config/lib/bundle.mdx @@ -1 +1,4 @@ # lib.bundle + +- **Type:** `boolean` +- **Default:** `true` diff --git a/website/docs/en/config/lib/dts.mdx b/website/docs/en/config/lib/dts.mdx index 52d3be121..d9b3bac90 100644 --- a/website/docs/en/config/lib/dts.mdx +++ b/website/docs/en/config/lib/dts.mdx @@ -1 +1,17 @@ # lib.dts + +- **Type:** + +```ts +type Dts = + | { + build?: boolean; + bundle?: boolean; + distPath?: string; + abortOnError?: boolean; + autoExtension?: boolean; + } + | boolean; +``` + +- **Default:** `undefined` diff --git a/website/docs/en/config/lib/external-helpers.mdx b/website/docs/en/config/lib/external-helpers.mdx index 0742c9ce4..8ba583282 100644 --- a/website/docs/en/config/lib/external-helpers.mdx +++ b/website/docs/en/config/lib/external-helpers.mdx @@ -1 +1,4 @@ # lib.externalHelpers + +- **Type:** `boolean` +- **Default:** `false` diff --git a/website/docs/en/config/lib/footer.mdx b/website/docs/en/config/lib/footer.mdx index 064072b6d..3f6066c7c 100644 --- a/website/docs/en/config/lib/footer.mdx +++ b/website/docs/en/config/lib/footer.mdx @@ -1 +1,13 @@ # lib.footer + +- **Type:** + +```ts +type Footer = { + js?: string; + css?: string; + dts?: string; +}; +``` + +- **Default:** `{}` diff --git a/website/docs/en/config/lib/format.mdx b/website/docs/en/config/lib/format.mdx index a6428bf66..5171bb30b 100644 --- a/website/docs/en/config/lib/format.mdx +++ b/website/docs/en/config/lib/format.mdx @@ -1 +1,4 @@ # lib.format + +- **Type:** `string` +- **Default:** `undefined` diff --git a/website/docs/en/config/lib/redirect.mdx b/website/docs/en/config/lib/redirect.mdx index 3f144c2e4..6413610cc 100644 --- a/website/docs/en/config/lib/redirect.mdx +++ b/website/docs/en/config/lib/redirect.mdx @@ -1 +1,11 @@ # lib.redirect + +- **Type:** + +```ts +type Redirect = { + style?: boolean; +}; +``` + +- **Default:** `{}` diff --git a/website/docs/en/config/lib/shims.mdx b/website/docs/en/config/lib/shims.mdx index 659616b44..344840f3c 100644 --- a/website/docs/en/config/lib/shims.mdx +++ b/website/docs/en/config/lib/shims.mdx @@ -6,33 +6,33 @@ overviewHeaders: [2, 3] - **Type:** - ```ts - type Shims = { - cjs?: { - 'import.meta.url'?: boolean; - }; - esm?: { - __filename?: boolean; - __dirname?: boolean; - require?: boolean; - }; +```ts +type Shims = { + cjs?: { + 'import.meta.url'?: boolean; }; - ``` + esm?: { + __filename?: boolean; + __dirname?: boolean; + require?: boolean; + }; +}; +``` - **Default:** - ```js - { - cjs: { - 'import.meta.url': true, - }, - esm: { - __filename: false, - __dirname: false, - require: false, - }, - } - ``` +```js +const defaultShims = { + cjs: { + 'import.meta.url': true, + }, + esm: { + __filename: false, + __dirname: false, + require: false, + }, +}; +``` Used to configure the shims for CommonJS and ESM output. diff --git a/website/docs/en/config/lib/syntax.mdx b/website/docs/en/config/lib/syntax.mdx index 89cf6a15a..7326592b9 100644 --- a/website/docs/en/config/lib/syntax.mdx +++ b/website/docs/en/config/lib/syntax.mdx @@ -1 +1,22 @@ # lib.syntax + +- **Type:** + +```ts +type EcmaScriptVersion = + | 'es5' + | 'es6' + | 'es2015' + | 'es2016' + | 'es2017' + | 'es2018' + | 'es2019' + | 'es2020' + | 'es2021' + | 'es2022' + | 'es2023' + | 'es2024' + | 'esnext'; + +type Syntax = EcmaScriptVersion | string[]; +``` diff --git a/website/docs/en/config/lib/umd-name.mdx b/website/docs/en/config/lib/umd-name.mdx index 0ef9a503e..08395a4ee 100644 --- a/website/docs/en/config/lib/umd-name.mdx +++ b/website/docs/en/config/lib/umd-name.mdx @@ -1 +1,4 @@ # lib.umdName + +- **Type:** `string` +- **Default:** `undefined`