raise exception if both Flow and TypeScript are enabled
This commit is contained in:
parent
4aedeeee9b
commit
7e7b050ae7
|
@ -216,6 +216,10 @@ if (isTypeScriptEnabled) {
|
|||
base.resolve.extensions.push('.ts', '.tsx');
|
||||
}
|
||||
|
||||
if (isFlowEnabled && isTypeScriptEnabled) {
|
||||
throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
||||
}
|
||||
|
||||
// development config
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue