mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-19 14:54:26 +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
|
// should be false in configs that have isTypeScriptEnabled = true
|
||||||
const isFlowEnabled = !embarkPipeline.typescript;
|
// const isFlowEnabled = !embarkPipeline.typescript;
|
||||||
if (isFlowEnabled) {
|
// if (isFlowEnabled) {
|
||||||
// position @babel/plugin-transform-flow-strip-types per babel-preset-react-app
|
// // position @babel/plugin-transform-flow-strip-types per babel-preset-react-app
|
||||||
baseBabelLoader.options.plugins.unshift(
|
// baseBabelLoader.options.plugins.unshift(
|
||||||
requireFromEmbark.resolve('@babel/plugin-transform-flow-strip-types')
|
// requireFromEmbark.resolve('@babel/plugin-transform-flow-strip-types')
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
// TypeScript
|
// TypeScript
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
@ -244,9 +244,9 @@ if (isTypeScriptEnabled) {
|
|||||||
base.resolve.extensions.push('.ts', '.tsx');
|
base.resolve.extensions.push('.ts', '.tsx');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isFlowEnabled && isTypeScriptEnabled) {
|
// if (isFlowEnabled && isTypeScriptEnabled) {
|
||||||
throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
// throw new Error('isFlowEnabled and isTypeScriptEnabled cannot both be true');
|
||||||
}
|
// }
|
||||||
|
|
||||||
// development config
|
// development config
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user