Skip to content
Open
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
2 changes: 1 addition & 1 deletion HEAD_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b5499e05b0c1c2847545a610cbaea3d352328d3d
0b60f1cba10640d886510999c1bfbca5f4ba7ab6
27 changes: 21 additions & 6 deletions generate-md.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
import { Application } from 'typedoc';
import { rmSync } from 'node:fs';
import webpack from './webpack/package.json' with { type: 'json' };
import { major } from 'semver';

const out = `pages/v${major(webpack.version)}.x`;
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because out is used as an rmSync(..., { recursive: true, force: true }) target, it’s worth validating that major(webpack.version) produced an expected value (e.g., an integer) and that out matches an expected safe prefix/path before deleting. This makes accidental mass deletion much less likely if webpack.version is malformed or unexpectedly resolved.

Copilot uses AI. Check for mistakes.

const app = await Application.bootstrapWithPlugins({
entryPoints: ['./webpack/types.d.ts'],
out: `pages/v${major(webpack.version)}.x`,
// Inputs
// `lib` gives us the runtime export surface for the root `webpack` page,
// `types.d.ts` gives us the primary declarations, and the declaration files
// fill in option/config types that are not re-exported through `types.d.ts`.
entryPoints: [
'./webpack/lib',
'./webpack/types.d.ts',
'./webpack/declarations/**/*.d.ts',
],

// Configuration
tsconfig: './tsconfig.typedoc.json',

// Outputs
out,
modulesFileName: 'index',
readme: 'none',

// Plugins
plugin: [
Expand All @@ -20,14 +38,11 @@ const app = await Application.bootstrapWithPlugins({
hideBreadcrumbs: true,
hidePageHeader: true,
disableSources: true,
propertiesFormat: 'table',

entryFileName: 'index',
tsconfig: 'tsconfig.json',
});

const project = await app.convert();

if (project) {
rmSync(out, { recursive: true, force: true });
await app.generateOutputs(project);
}
12 changes: 0 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions pages/v5.x/AggressiveSplitting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# AggressiveSplitting

<!-- type=misc -->

## `AggressiveSplittingPluginOptions`

### Properties

#### `chunkOverhead`

* Type: {number} Optional.

Extra cost for each chunk (Default: 9.8kiB).

***

#### `entryChunkMultiplicator`

* Type: {number} Optional.

Extra cost multiplicator for entry chunks (Default: 10).

***

#### `maxSize`

* Type: {number} Optional.

Byte, max size of per file (Default: 50kiB).

***

#### `minSize`

* Type: {number} Optional.

Byte, split point. (Default: 30kiB).

## Class: `AggressiveSplittingPlugin`

### Constructors

#### `new AggressiveSplittingPlugin([options])`

##### Parameters

* `options` {AggressiveSplittingPluginOptions}

* Returns: {AggressiveSplittingPlugin}

### Properties

#### `options`

* Type: {AggressiveSplittingPluginOptions}

### Methods

#### `apply(compiler)`

##### Parameters

* `compiler` {Compiler}

* Returns: {void}

Apply the plugin

***

#### Static method: `wasChunkRecorded(chunk)`

##### Parameters

* `chunk` {Chunk}

* Returns: {boolean}
29 changes: 29 additions & 0 deletions pages/v5.x/Argument.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Argument

<!-- type=misc -->

## `Argument`

### Properties

#### `configs`

* Type: {ArgumentConfig[]}

***

#### `description`

* Type: {string} Optional.

***

#### `multiple`

* Type: {boolean}

***

#### `simpleType`

* Type: {SimpleType}
57 changes: 57 additions & 0 deletions pages/v5.x/Asset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Asset

<!-- type=misc -->

## `Asset`

### Properties

#### `info`

* Type: {AssetInfo}

info about the asset

***

#### `name`

* Type: {string}

the filename of the asset

***

#### `source`

* Type: {Source}

source of the asset

## `AssetInfo`

* Type: {KnownAssetInfo & Record<string, any>}

## `AssetEmittedInfo`

### Properties

#### `compilation`

* Type: {Compilation}

#### `content`

* Type: {Buffer}

#### `outputPath`

* Type: {string}

#### `source`

* Type: {Source}

#### `targetPath`

* Type: {string}
Loading