Skip to content

Allow ast transformer to specify options #1942

@longlho

Description

@longlho

🚀 Feature Proposal

Right now ast transformers only take in a path to the transformer factory but not further options. Our transformer has a lot of options but we have no idea how to pass those in other than creating a wrapper

Motivation

Example

// jest.config.js
module.exports = {
  // [...]
  globals: {
    'ts-jest': {
      astTransformers: {
        before: [{
			path: '@formatjs/ts-transformer',
			options: {}
		}],
      },
    }
  }
};

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions