In https://github.com/nathanhammond/libphonenumber/blob/master/dist/libphonenumber.js#L1 the very first line is var aa = this. When using your library with browserify, your library will be in a closure whose context is not the window, but instead undefined.
Can you just change it to var aa = window? I'm sure this could be fixed in closure too, but I don't know that code well enough to open the issue.
In https://github.com/nathanhammond/libphonenumber/blob/master/dist/libphonenumber.js#L1 the very first line is
var aa = this. When using your library withbrowserify, your library will be in a closure whose context is not the window, but insteadundefined.Can you just change it to
var aa = window? I'm sure this could be fixed in closure too, but I don't know that code well enough to open the issue.