Skip to content

Commit

Permalink
using include in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ychi committed May 10, 2020
1 parent 5f29c48 commit 05e632d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/jest-transform/src/ScriptTransformer.ts
Expand Up @@ -273,7 +273,7 @@ export default class ScriptTransformer {
return transformer;
}

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

if (!transform) {
throw new TypeError('Jest: a transform must export something.');
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-transform/tsconfig.json
@@ -1,13 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "build"
},
"references": [
{"path": "../jest-haste-map"},
{"path": "../jest-regex-util"},
{"path": "../jest-types"},
{"path": "../jest-util"}
]
],
"include": ["src/**/*", "package.json"],
}

0 comments on commit 05e632d

Please sign in to comment.