Skip to content

Commit

Permalink
Is import() causing tsc complaint?
Browse files Browse the repository at this point in the history
  • Loading branch information
ychi committed May 10, 2020
1 parent 4a30e48 commit d4f36fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-transform/src/ScriptTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export default class ScriptTransformer {
return transformer;
}

transform = await import(transformPath);
transform = require(transformPath);

if (!transform) {
throw new TypeError('Jest: a transform must export something.');
Expand Down

0 comments on commit d4f36fa

Please sign in to comment.