Webpack 4 Declaration Bundler Plugin

JSON →
library 1.0.6-beta.2 ·javascript abandoned
verified May 27, 2026

This library, `declaration-bundler-webpack4-plugin`, bundles individual TypeScript declaration files (`.d.ts`) generated during the Webpack build process into a single, combined declaration file. It achieves this by re-composing the declarations as if all classes and interfaces were defined as internal modules within a specified `moduleName`. This makes the plugin particularly relevant for niche scenarios where classes and interfaces are deliberately exposed to a global module space, allowing for runtime access patterns that mimic internal TypeScript modules, often mapping prefixed URIs (like `foaf:Image`) back to module paths (e.g., `my.modules.rdfs.Image`). The current version is 1.0.6-beta.2. Given its beta status, the last commit dating back to early 2020, and its explicit tie to Webpack 4 (which is no longer the current major version of Webpack), its release cadence is effectively stalled, indicating it is no longer actively maintained. Its key differentiator is this unique, somewhat opinionated, approach to declaration bundling for a very specific internal module emulation pattern, which the documentation explicitly states makes it unsuitable for standard internal or external module usage. It primarily functions as an extension of `ts-loader`, requiring `ts-loader` to generate the initial individual declaration files for each source file, which this plugin then processes into a single output.

total hits 21
actors 7 distinct systems
last hit 7d ago MetaBot
ByteDance
9
MetaBot
4
GPTBot
2
Script
1
Search engines
2

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany