{"library":"npm-dts-webpack-plugin","title":"npm-dts-webpack-plugin","description":"Webpack plugin (v1.3.13) that generates a single bundled index.d.ts file for an NPM package, enabling code intelligence in consumers without shipping TypeScript sources. It wraps the npm-dts library and runs the TypeScript compiler declaratively. Releases are infrequent (last update 2021) and the plugin is in maintenance mode. Key differentiator: simple integration into Webpack pipelines as a plugin rather than a separate CLI step.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install npm-dts-webpack-plugin"],"cli":null},"imports":["const NpmDtsPlugin = require('npm-dts-webpack-plugin');","import NpmDtsPlugin from 'npm-dts-webpack-plugin';","import type { Options } from 'npm-dts-webpack-plugin';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const NpmDtsPlugin = require('npm-dts-webpack-plugin');\nmodule.exports = {\n  entry: './src/index.ts',\n  output: { filename: 'bundle.js', path: __dirname + '/dist' },\n  resolve: { extensions: ['.ts', '.js'] },\n  module: { rules: [{ test: /\\.ts$/, use: 'ts-loader', exclude: /node_modules/ }] },\n  plugins: [new NpmDtsPlugin({\n    logLevel: 'info',\n    output: 'index.d.ts'\n  })]\n};","lang":"javascript","description":"Configures Webpack with the plugin to generate a bundled index.d.ts alongside the JavaScript bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}