From 2d4196fc54b58046947c2618e7c2dac063880ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s?= <690217+tomtastico@users.noreply.github.com> Date: Tue, 14 Nov 2023 22:44:31 +0100 Subject: [PATCH] fix: add support for bundling .mjs and .mts files via component-loader (#1576) --- src/backend/utils/component-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/component-loader.ts b/src/backend/utils/component-loader.ts index 455c77ad6..88609b5e4 100644 --- a/src/backend/utils/component-loader.ts +++ b/src/backend/utils/component-loader.ts @@ -73,7 +73,7 @@ export class ComponentLoader { } public static resolveFilePath(filePath: string, caller: string): string { - const extensions = ['.jsx', '.js', '.ts', '.tsx'] + const extensions = ['.jsx', '.js', '.ts', '.tsx', '.mts', '.mjs'] const src = path.isAbsolute(filePath) ? filePath : relativeFilePathResolver(filePath, new RegExp(`.*.{1}${caller}`))