Skip to content

Commit 51cc0e2

Browse files
committed
fix(LoaderStrategy): add .ts to allow for ts-node usage
fixes #86
1 parent b93dbf2 commit 51cc0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/strategies/LoaderStrategy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { classExtends, isClass } from './Shared';
1414
*/
1515
export class LoaderStrategy<T extends Piece> implements ILoaderStrategy<T> {
1616
private readonly clientUsesESModules: boolean = getRootData().type === 'ESM';
17-
private readonly supportedExtensions: readonly string[] = ['.js', '.cjs', '.mjs'];
17+
private readonly supportedExtensions: readonly string[] = ['.js', '.cjs', '.mjs', '.ts'];
1818

1919
public filter(path: string): FilterResult {
2020
// Retrieve the file extension.

0 commit comments

Comments
 (0)