diff --git a/packages/babel/src/module.ts b/packages/babel/src/module.ts index 3aa57d306..626b6401f 100644 --- a/packages/babel/src/module.ts +++ b/packages/babel/src/module.ts @@ -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); }