Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/auto-extension.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.autoExtension

- **Type:** `boolean`
- **Default:** `true`
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/auto-external.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.autoExternal

- **Type:** `boolean`
- **Default:** `true`
12 changes: 12 additions & 0 deletions website/docs/en/config/lib/banner.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# lib.banner

- **Type:**

```ts
type Banner = {
js?: string;
css?: string;
dts?: string;
};
```

- **Default:** `{}`
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/bundle.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.bundle

- **Type:** `boolean`
- **Default:** `true`
16 changes: 16 additions & 0 deletions website/docs/en/config/lib/dts.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# lib.dts

- **Type:**

```ts
type Dts =
| {
build?: boolean;
bundle?: boolean;
distPath?: string;
abortOnError?: boolean;
autoExtension?: boolean;
}
| boolean;
```

- **Default:** `undefined`
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/external-helpers.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.externalHelpers

- **Type:** `boolean`
- **Default:** `false`
12 changes: 12 additions & 0 deletions website/docs/en/config/lib/footer.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# lib.footer

- **Type:**

```ts
type Footer = {
js?: string;
css?: string;
dts?: string;
};
```

- **Default:** `{}`
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/format.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.format

- **Type:** `string`
- **Default:** `undefined`
10 changes: 10 additions & 0 deletions website/docs/en/config/lib/redirect.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# lib.redirect

- **Type:**

```ts
type Redirect = {
style?: boolean;
};
```

- **Default:** `{}`
46 changes: 23 additions & 23 deletions website/docs/en/config/lib/shims.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
21 changes: 21 additions & 0 deletions website/docs/en/config/lib/syntax.mdx
Original file line number Diff line number Diff line change
@@ -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[];
```
3 changes: 3 additions & 0 deletions website/docs/en/config/lib/umd-name.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# lib.umdName

- **Type:** `string`
- **Default:** `undefined`
Loading