Skip to content

Commit 4d0e9f3

Browse files
authored
fix: fixed fileExrtension undefined (#151)
1 parent bc9da56 commit 4d0e9f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/helpers/config.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ export async function prepareConfig(
4646
replacers,
4747
resolveFullPaths,
4848
verbose,
49-
fileExtensions: fileExtensionsConfig
49+
fileExtensions
5050
} = loadConfig(configFile, output);
5151

52-
const fileExtensions = { ...fileExtensionsConfig, ...options.fileExtensions };
52+
if (options?.fileExtensions?.inputGlob)
53+
fileExtensions.inputGlob = options.fileExtensions.inputGlob;
54+
if (options?.fileExtensions?.outputCheck)
55+
fileExtensions.outputCheck = options.fileExtensions.outputCheck;
5356

5457
output.verbose = verbose;
5558

0 commit comments

Comments
 (0)