I ran into the same issue as #543 . After doing a bit of digging, I found out that in package.json the main was pointing at the AMD distribution, where in Bower, or in the browser it was pointing to the CommonJS one.
I also change the order between global and window in the module wrapper as it is causing issue when the library is used in a non browser context. (When used with the Mocha CLI for example)
Hi,
I ran into the same issue as #543 . After doing a bit of digging, I found out that in
package.json
themain
was pointing at the AMD distribution, where in Bower, or in thebrowser
it was pointing to the CommonJS one.I also change the order between
global
andwindow
in the module wrapper as it is causing issue when the library is used in a non browser context. (When used with the Mocha CLI for example)Let me know your thoughts, Thanks