Skip to content

underscore-template-loader in custom jest transformer #32

@dhaval-lila

Description

@dhaval-lila

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions