Skip to content

Commit

Permalink
fix: add support for bundling .mjs and .mts files via component-loader (
Browse files Browse the repository at this point in the history
  • Loading branch information
tomups authored Nov 14, 2023
1 parent b51b012 commit 2d4196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/component-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`))
Expand Down

0 comments on commit 2d4196f

Please sign in to comment.