wrap-define (npm): wrap amd,cmd to capture module id when error occurs within module factory function.
Keywords: module|id|amd|cmd