Skip to content

Commit

Permalink
fix(module): add .cjs extension (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Sep 8, 2023
1 parent d89b8b2 commit 075b919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Module {
this.exports = {};

// We support following extensions by default
this.extensions = ['.json', '.js', '.jsx', '.ts', '.tsx'];
this.extensions = ['.json', '.js', '.jsx', '.ts', '.tsx', '.cjs'];
this.debug('prepare', filename);
}

Expand Down

0 comments on commit 075b919

Please sign in to comment.