rse / pure-uuid

Pure JavaScript Based Universally Unique Identifiers (UUID)
https://www.npmjs.com/package/pure-uuid
66 stars 16 forks source link

AMD define should produce anonymous module #5

Closed eapearson closed 8 years ago

eapearson commented 8 years ago

Hi, The UMD mechanism employed sets the AMD module name to "UUID", which prevents usage of pure-uuid as an anonymous module. I believe what you really want is to omit the module name, and either replace it with [] to signify no dependencies or to skip that argument altogether. Once I made that change locally, it worked fine.