I am using the namespace option with r.js and it does not rename the tpl define statements. eg: define('tpl!templates") ---> namespace.define('tpl!templates")