-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using browser javascript libraries with browserify #59
Comments
Instead of attaching your exports to the |
@substack, something like this at the bottom of the example?
|
Use the following if (typeof module !== 'undefined' && module.exports) {
module.exports = SoundManager;
} else {
window.SoundManager = SoundManager;
} |
@tommedema Sure that will work but you also don't need to assign anything to |
I'm using quite a lot of complex javascript libraries on the client side.
An example: https://github.com/scottschiller/SoundManager2/blob/master/script/soundmanager2.js
Is it possible to make these libraries require-able?
The text was updated successfully, but these errors were encountered: