Skip to content

Commit

Permalink
improve(config): Support cjs file extensions for config file (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvenschraut committed Sep 23, 2021
1 parent 5c8ee39 commit ff3e7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function loadConfigFile(configFile) {
const extensionName = path.extname(configFile);

// .conf.js config file
if (extensionName === '.js' || extensionName === '.ts') {
if (extensionName === '.js' || extensionName === '.ts' || extensionName === '.cjs') {
return Config.create(require(configFile).config);
}

Expand Down

0 comments on commit ff3e7c2

Please sign in to comment.