underscore-template-loader
underscore-template-loader copied to clipboard
underscore-template-loader in custom jest transformer
I am writing custom jest transfomer for ejs templates something like this
const temp = require('underscore-template-loader');
module.exports = {
process(src) {
return temp(src);
},
};
i am getting error something like this TypeError: this.async is not a function
. what is the correct way to write transformer using underscore-template-loader
?
@dhaval-lila have you been able to figure out the cause for this issue or a workaround? I am currently running into the same problem as well.