Skip to content

Commit

Permalink
feat: accept to transpile files with .mjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sod committed Nov 5, 2021
1 parent c4bbb2b commit c1df0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function getJestTransformConfig(jestConfig: JestConfig26 | JestConfig27): Option

export = {
process(src: string, path: string, jestConfig: JestConfig26 | JestConfig27) {
if (/\.(t|j)sx?$/.test(path)) {
if (/\.(tsx?|jsx?|mjs)$/.test(path)) {
const hash = xxh64(src).toString(16)
const cacheKey = `${path}-${hash}`
const maybeCachedEntry = Cache.get(cacheKey)
Expand Down

0 comments on commit c1df0c8

Please sign in to comment.