From e3955153573c150729d994aa9b3fa2376ba06a78 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Wed, 4 Jan 2023 00:35:25 +0800 Subject: [PATCH] fix --- packages/babel-core/src/config/files/module-types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-core/src/config/files/module-types.ts b/packages/babel-core/src/config/files/module-types.ts index 909ac44637d8..d9a43822eba7 100644 --- a/packages/babel-core/src/config/files/module-types.ts +++ b/packages/babel-core/src/config/files/module-types.ts @@ -74,6 +74,7 @@ function loadCtsDefault(filepath: string) { { allowDeclareFields: true, disallowAmbiguousJSXLike: true, + allExtensions: true, onlyRemoveTypeImports: true, optimizeConstEnums: true, },