From 075b9191507c2ee49b9eb04ed0a5d03e2192444c Mon Sep 17 00:00:00 2001 From: Oleksandr Fediashov Date: Fri, 8 Sep 2023 12:13:05 +0200 Subject: [PATCH] fix(module): add .cjs extension (#1335) --- 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); }