Hi,
Some of my external libs provides support for both nodejs modules and AMD using a pattern like :
(function (name, definition) {
if (typeof module != 'undefined') module.exports = definition()
else if (typeof define == 'function' && typeof define.amd == 'object') define(name, definition)
else this[name] = definition()
I will submit pull request to these libs to use a more
robust check so they can work with Polymer, but isn't a global 'module' method prone to conflict with other existing library ?
Should I open an issue, or is it mean to stay this way and my other libs to improve their nodejs module detection pattern ?
Best regards,
R. LANG.