wmluke / angular-bugsnag

Angular wrapper for Bugsnag
36 stars 13 forks source link

Add index.js to project root to make angular-bugsnag browserify ready #14

Open dmcnaugh opened 9 years ago

dmcnaugh commented 9 years ago

Could you add the following code as index.js in the project root

require('./dist/angular-bugsnag');
module.exports = 'angular-bugsnag';

This will make your package browserify ready to use like...

angular.module('myapp', [require('angular-bugsnag')]);

This is the way all the Angular modules are set up since they started supporting browserify.

alexeybondarenko commented 8 years ago

+1