Allow compiled templates to avoid the dependency on `lodash` for the `escape` method if `moduleId=none`.