From 675c0ca9fc44bc24f8240fb012c01c7d67e4ac7e Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Fri, 8 Sep 2023 10:02:34 +0000 Subject: [PATCH] fix(module): add .cjs extension --- packages/babel/src/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }