raise exception if both Flow and TypeScript are enabled

This commit is contained in:
Michael Bradley, Jr 2018-10-01 19:20:10 -05:00 committed by Pascal Precht
parent 4aedeeee9b
commit 7e7b050ae7
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 0 deletions

View File

@ -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
// -----------------------------------------------------------------------------