Raven JS with Angular 1.x - installation questions


#1

I’m using Angular 1.4.8 and installed raven-js 3.21.0. I’m confused as to which angular plugin to include as there are two different plugin files in the repository: “raven-js/plugins/angular.js” and “raven-js/dist/plugins/angular.js”.

Here’s how I’m currently loading it (using webpack)

sentry.js

import Raven from 'raven-js';
import ngRaven from 'raven-js/plugins/angular';

Raven
  .config(__PUBLIC_DSN__)
  .addPlugin(ngRaven, angular)
  .install();

const sentryModule = angular.module('app.sentry', [
  ngRaven.moduleName
]);

export default sentryModule.name;

I then import this sentry.js file in the main application and add it to the app dependencies.

Should I be using “raven-js/dist/plugins/angular.js” or “raven-js/plugins/angular.js”?