ngInject Loader

JSON →
library 2.1.0 ·javascript maintenance
verified Jun 4, 2026

Webpack loader to migrate from legacy @ngInject pre-minifier syntax to modern "ngInject" directive prologue syntax for AngularJS applications. Current stable version is 2.1.0 with low release cadence. Key differentiator: reliably detects and rewrites @ngInject annotations after transpilation, enabling gradual migration while working alongside ng-annotate-loader. Version 2.x streamlined the loader to focus solely on syntax migration, contrasting with version 1.x which overlapped ng-annotate functionality.