Skip to content

Commit 699bcb3

Browse files
authored
fix(main): check extends section for existence
1 parent 80c8a06 commit 699bcb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ function readConfig(confPath) {
143143

144144
const extUrl = conf.extends
145145
const extPath = extUrl ? path.resolve(confdir, extUrl) : ''
146+
if(extPath && !fs.existsSync(extPath))
147+
throw Error(`react-app-alias:readConfig: '${confPath}' field 'extends' is '${extPath}' - not exists'`)
146148
conf.extends = extUrl ? require(extPath) : {}
147-
149+
148150
return conf
149151
}
150152

0 commit comments

Comments
 (0)