We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5c8edf + 699bcb3 commit 9452a82Copy full SHA for 9452a82
packages/react-app-alias/src/index.js
@@ -143,8 +143,10 @@ function readConfig(confPath) {
143
144
const extUrl = conf.extends
145
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'`)
148
conf.extends = extUrl ? require(extPath) : {}
-
149
+
150
return conf
151
}
152
0 commit comments