braintree / sanitize-url

MIT License
312 stars 35 forks source link

Module is not defined error #9

Closed insanicly closed 5 years ago

insanicly commented 5 years ago

When module is tried to be used as a pure javascript function (without using a packaging tech like browsify etc) an error occurs.

Here is the PR that will solve that problem and not changing anything in the logic.

https://github.com/braintree/sanitize-url/pull/8

crookedneighbor commented 5 years ago

Closing. See https://github.com/braintree/sanitize-url/pull/8#issuecomment-444889730