Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmcnaugh opened this issue Aug 31, 2015 · 1 comment
Open

Comments

@dmcnaugh
Copy link

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.

@dmcnaugh dmcnaugh changed the title Add index.js to project root to make angular-bugs a Add index.js to project root to make angular-bugsnag browserify ready Aug 31, 2015
@alexeybondarenko
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants