websanova / js-url

url() - A simple, lightweight url parser for JavaScript
http://www.websanova.com
MIT License
1.93k stars 204 forks source link

Added AMD define module name #55

Closed ChromeQ closed 7 years ago

ChromeQ commented 7 years ago

Bumped version to 2.4.1

I am using this in a require project and I was getting an Uncaught Error: Mismatched anonymous define() module: function (){return t}. Generally naming the module is a good idea (as my setup does not put the bower components through the r.js optimizer)

More information: http://requirejs.org/docs/errors.html#mismatch