Skip to content

Commit

Permalink
fix: add mjs and cjs as accepted asset extensions (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx authored Dec 15, 2024
1 parent a0ca145 commit d0b0991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sonda/src/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function generateJsonReport(
inputs: Record<string, ReportInput>,
options: Options
): JsonReport {
const acceptedExtensions = [ '.js', '.css' ];
const acceptedExtensions = [ '.js', '.mjs', '.cjs', '.css' ];

const outputs = assets
.filter( asset => acceptedExtensions.includes( extname( asset ) ) )
Expand Down

0 comments on commit d0b0991

Please sign in to comment.