From 7e7b050ae74db691de42e65aae35a5008aab95a2 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 1 Oct 2018 19:20:10 -0500 Subject: [PATCH] raise exception if both Flow and TypeScript are enabled --- lib/pipeline/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pipeline/webpack.config.js b/lib/pipeline/webpack.config.js index fe914d85a..e44bacf67 100644 --- a/lib/pipeline/webpack.config.js +++ b/lib/pipeline/webpack.config.js @@ -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 // -----------------------------------------------------------------------------