{"id":20235,"library":"ng-annotate-webpack-plugin","title":"ng-annotate-webpack-plugin","description":"A webpack plugin that runs ng-annotate on your bundles to add dependency injection annotations for AngularJS. Stable version is 0.3.0. Designed for AngularJS (1.x) applications using Webpack. Alternative to ng-annotate-loader. Provides plugin-based approach; can be used with other loaders. No active development or recent updates (last release 0.3.0). Not intended for Angular 2+.","status":"maintenance","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/cliechty/ng-annotate-webpack-plugin","tags":["javascript","webpack","ng-annotate","angular"],"install":[{"cmd":"npm install ng-annotate-webpack-plugin","lang":"bash","label":"npm"},{"cmd":"yarn add ng-annotate-webpack-plugin","lang":"bash","label":"yarn"},{"cmd":"pnpm add ng-annotate-webpack-plugin","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for annotation transformation","package":"ng-annotate","optional":false}],"imports":[{"note":"CommonJS require is the standard pattern for webpack config files. ESM import may cause issues in Node.js environments.","wrong":"import ngAnnotatePlugin from 'ng-annotate-webpack-plugin';","symbol":"ngAnnotatePlugin","correct":"var ngAnnotatePlugin = require('ng-annotate-webpack-plugin');"}],"quickstart":{"code":"// webpack.config.js\nvar ngAnnotatePlugin = require('ng-annotate-webpack-plugin');\n\nmodule.exports = {\n  // ... rest of config\n  plugins: [\n    new ngAnnotatePlugin({\n      add: true\n      // other ng-annotate options here\n    })\n  ]\n};","lang":"javascript","description":"Shows basic usage: require the plugin and add to webpack plugins array."},"warnings":[{"fix":"Switch to ng-annotate-loader for better integration with webpack loaders.","message":"Consider using ng-annotate-loader instead — this plugin may not be maintained.","severity":"deprecated","affected_versions":"all"},{"fix":"Consider using ng-annotate-loader which processes before bundling.","message":"Plugin runs ng-annotate after bundling — source maps may be incorrect.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install ng-annotate-webpack-plugin --save-dev","cause":"Missing npm install or incorrect path.","error":"Module not found: Error: Can't resolve 'ng-annotate-webpack-plugin'"},{"fix":"Use require('ng-annotate-webpack-plugin') instead of ES6 import.","cause":"Incorrect import (default import instead of require).","error":"TypeError: ngAnnotatePlugin is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}