mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-16 13:26:27 +00:00
fix decorators not properly working
This commit is contained in:
parent
22526b59ce
commit
2bc3e5fd34
@ -220,13 +220,13 @@ const baseBabelLoader = base.module.rules[3];
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
// should be false in configs that have isTypeScriptEnabled = true
|
||||
const isFlowEnabled = !embarkPipeline.typescript;
|
||||
if (isFlowEnabled) {
|
||||
// position @babel/plugin-transform-flow-strip-types per babel-preset-react-app
|
||||
baseBabelLoader.options.plugins.unshift(
|
||||
requireFromEmbark.resolve('@babel/plugin-transform-flow-strip-types')
|
||||
);
|
||||
}
|
||||
// const isFlowEnabled = !embarkPipeline.typescript;
|
||||
// if (isFlowEnabled) {
|
||||
// // position @babel/plugin-transform-flow-strip-types per babel-preset-react-app
|
||||
// baseBabelLoader.options.plugins.unshift(
|
||||
// requireFromEmbark.resolve('@babel/plugin-transform-flow-strip-types')
|
||||
// );
|
||||
// }
|
||||
|
||||
// TypeScript
|
||||
// -----------------------------------------------------------------------------
|
||||
@ -244,9 +244,9 @@ if (isTypeScriptEnabled) {
|
||||
base.resolve.extensions.push('.ts', '.tsx');
|
||||
}
|
||||
|
||||
if (isFlowEnabled && isTypeScriptEnabled) {
|
||||
throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
||||
}
|
||||
// if (isFlowEnabled && isTypeScriptEnabled) {
|
||||
// throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
||||
// }
|
||||
|
||||
// development config
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user