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
parent 787dfbe428
commit 1dadf6338b

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