Skip to content

Commit

Permalink
fix(instrumenter): add missing case for .jsx files in parser (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiDoering committed Oct 28, 2020
1 parent 59f39ee commit cea94aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/instrumenter/src/parsers/index.ts
Expand Up @@ -31,6 +31,7 @@ export function getFormat(fileName: string, override?: AstFormat): AstFormat {
const ext = path.extname(fileName).toLowerCase();
switch (ext) {
case '.js':
case '.jsx':
case '.mjs':
case '.cjs':
return AstFormat.JS;
Expand Down

0 comments on commit cea94aa

Please sign in to comment.