browserify-nginject

Browserify transform where explicit @ngInject comment creates pre-minification $inject property

Usage no npm install needed!

<script type="module">
  import browserifyNginject from 'https://cdn.skypack.dev/browserify-nginject';
</script>

README

Browserify ngInject

NPM

dependencies

Browserify transform where explicit @ngInject comment creates pre-minification $inject property.

Use following babelify where browserify-ngannotate is not working or is not giving correct source-maps.

Creates array-type annotations where $inject property is not possible.

Detects the usual angular.module().* members implicitly. However does not make any other detections (yet).