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 19, 2020
1 parent 842083a commit 49aac1d
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 49aac1d

Please sign in to comment.