Skip to content

Commit

Permalink
add config 'craco.config.cjs' to support for ES6 module
Browse files Browse the repository at this point in the history
  • Loading branch information
shibin2021 committed Nov 19, 2021
1 parent d3fc538 commit 6f41383
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/craco/lib/config.js
Expand Up @@ -35,6 +35,7 @@ const explorer = cosmiconfigSync(moduleName, {
"package.json",
`${moduleName}.config.ts`,
`${moduleName}.config.js`,
`${moduleName}.config.cjs`,
`.${moduleName}rc.ts`,
`.${moduleName}rc.js`,
`.${moduleName}rc`
Expand Down

0 comments on commit 6f41383

Please sign in to comment.