Registry / devops / typedoc-webpack-plugin

typedoc-webpack-plugin

JSON →
library1.1.4jsnpmunverified

Runs TypeDoc documentation generation as a Webpack plugin. Latest version 1.1.4 (last released 2017) requires typedoc ^0.5.0 as peer dependency. It is an older, unmaintained plugin; consider using typedoc-plugin-webpack instead. It supports file/directory input, JSON output, and mirrors TypeDoc options.

npm install typedoc-webpack-plugin
INSTALL
IMPORT
SIG · TYPEDOC-WEBPACK-PL
T
typedoc-webpack-plugin
devopsjavascriptv1.1.4
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypedocWebpackPlugin
const TypedocWebpackPlugin = require('typedoc-webpack-plugin');
import TypedocWebpackPlugin from 'typedoc-webpack-plugin';
CommonJS only; no ES module or TypeScript type definitions.
TypedocWebpackPlugin
const TypedocWebpackPlugin = require('typedoc-webpack-plugin');
const { TypedocWebpackPlugin } = require('typedoc-webpack-plugin');
Default export, not named export.
Constructor usage
plugins: [new TypedocWebpackPlugin(options, input)]
new TypedocWebpackPlugin({...}, options)
First argument is options object, second is optional input string/array.

Webpack 4 configuration using typedoc-webpack-plugin to generate docs from src/ into ./docs.

const TypedocWebpackPlugin = require('typedoc-webpack-plugin'); module.exports = { entry: './src/index.ts', output: { path: './dist' }, resolve: { extensions: ['.ts', '.js'] }, module: { rules: [{ test: /\.ts$/, loader: 'ts-loader' }] }, plugins: [ new TypedocWebpackPlugin({ out: './docs', module: 'commonjs', target: 'es5', exclude: '**/node_modules/**/*.*', experimentalDecorators: true, excludeExternals: true }, './src') ] };
Debug
Known issues
breakingPlugin is unmaintained; no updates since 2017. May not work with Webpack 5 or newer TypeDoc versions.
fix
Use typedoc-plugin-webpack instead.
affects: >=1.0.0
deprecatedTypeDoc peer dependency is ^0.5.0; later TypeDoc versions have breaking API changes.
fix
Pin TypeDoc to 0.5.x or migrate to alternative.
affects: >=0.6.0
gotchaOptions are passed directly to TypeDoc; not all TypeDoc options may be supported.
fix
Refer to TypeDoc 0.5 documentation.
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: TypedocWebpackPlugin is not a constructor
ESM import used or wrong export access.
fix
Use const TypedocWebpackPlugin = require('typedoc-webpack-plugin');
Error: Cannot find module 'typedoc'
Missing peer dependency typedoc.
fix
Run: npm install typedoc@0.5 --save-dev
Upgrade
Version history
1.1.4latest on npm
Audit
Dependencies
typedocrequiredpeer dependency required
Agent activity
6 hits · last 30 days
node
6
Resources
typedoc-webpack-plugin — npm install typedoc-webpack-plugin · libregistry