-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support for Browserify #2
Comments
👍 |
Will investigate what this will take. |
👍 It took me a while to figure it out. The documentation states we can use |
👍 A common practice is to NOT check things like tokens into source control. We use a local config service (Angular) to bring in these tokens. I'm still trying to figure out how to do this for TrackJS. Far from ideal indeed! |
This is on our backlog and we're prioritizing it with other work. I'll update here when we have a timetable. |
To add to this ticket, it'd be great if the bower package exported an AMD module. This would make an entire part of my ember-cli-trackjs package obsolete. |
This has been added in agent v3.0.0, currently in canary testing. You can reference it as a module from npm:
import { TrackJS } from 'trackjs';
TrackJS.install({ token: 'YOUR_TOKEN' }); |
Please export the TrackJS npm published module so that we can require it.
The following code should be supported:
Unfortunately TrackJS module on NPM seems to not export its content and use a
trackJs
global variable, and also seems to require the token to be configured before lib loading, making call to configure with a token useless according to this warningTrackJS could not find a token
The text was updated successfully, but these errors were encountered: