Skip to content

Commit 4f9c6dc

Browse files
committed
chore: use concat instead of unshift
1 parent b4e72a5 commit 4f9c6dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function resolveFile(source, file, config) {
2525
}
2626

2727
let foundTsPath = null;
28-
const extensions = Object.keys(require.extensions);
29-
30-
extensions.unshift('.ts', '.tsx', '.d.ts');
28+
const extensions = ['.ts', '.tsx', '.d.ts'].concat(
29+
Object.keys(require.extensions),
30+
);
3131

3232
// setup tsconfig-paths
3333
const searchStart = config.directory || process.cwd();

0 commit comments

Comments
 (0)