add cmd define

add cmd define case for CommonJS