mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 09:28:37 +00:00
raise exception if both Flow and TypeScript are enabled
This commit is contained in:
parent
787dfbe428
commit
1dadf6338b
@ -216,6 +216,10 @@ if (isTypeScriptEnabled) {
|
|||||||
base.resolve.extensions.push('.ts', '.tsx');
|
base.resolve.extensions.push('.ts', '.tsx');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isFlowEnabled && isTypeScriptEnabled) {
|
||||||
|
throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
||||||
|
}
|
||||||
|
|
||||||
// development config
|
// development config
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user