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

Plugins not usable without a module bundler #446

Closed
floriangosse opened this issue Jan 4, 2016 · 2 comments
Closed

Plugins not usable without a module bundler #446

floriangosse opened this issue Jan 4, 2016 · 2 comments

Comments

@floriangosse
Copy link
Contributor

The plugins (especially the angular) are not usable without a module bundler. I use the bower package and can use the compiled file dist/raven.js but not any of the plugins because they haven't are browserify wrapper.

@benvinegar
Copy link
Contributor

So, this isn't very Bower-friendly, but you can link to or copy one of the pre-built plugin bundles from the Raven CDN, e.g. https://cdn.ravenjs.com/2.0.0/console,ember/raven.min.js

You can also build your own by cloning the raven-js repo and running grunt build.

But ... you're right. We should probably have script-includable plugin files built inside the dist folder for usage with Bower.

@wilgert
Copy link

wilgert commented Feb 10, 2016

You can override the main files in your bower.json like this:

  "overrides": {
    "raven-js": {
      "main": [
        "./dist/raven.js",
        "./dist/plugins/angular.js"
      ]
    }
  }

Never mind, that doesn't help at all. Because it still does module.exports.

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

3 participants