Could you maybe add support for AMD by using the Universal Module Definition which supports CommonJS/NodeJS, AMD and good old globals? Read about it here: https://github.com/umdjs/umd Example implementation: https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js Thank you Regards