Skip to content

Commit 7c4140b

Browse files
author
AlanBlanchetNeovision
committed
fix: set configPaths options to empty object
The configPaths option can be empty by default and use the default attributes for tsconfig.json or jsconfig.json. Thus the options object should be allowed to be undefined so that we don't overload the config with an empty object if we don't need to define another path for ts/jsonconfig.
1 parent 80c8a06 commit 7c4140b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-app-alias/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function configPaths(configPath = '', confUndoc) {
180180
return aliasMap
181181
}
182182

183-
function defaultOptions(options) {
183+
function defaultOptions(options = {}) {
184184
const configPath = configFilePathSafe(
185185
options.tsconfig || options.jsconfig
186186
)

0 commit comments

Comments
 (0)