diff --git a/keyserver/.babelrc.cjs b/keyserver/.babelrc.cjs --- a/keyserver/.babelrc.cjs +++ b/keyserver/.babelrc.cjs @@ -1,5 +1,8 @@ module.exports = { - presets: ['@babel/preset-react', '@babel/preset-flow'], + presets: [ + ['@babel/preset-react', { runtime: 'automatic' }], + '@babel/preset-flow' + ], plugins: [ '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread', diff --git a/keyserver/.flowconfig b/keyserver/.flowconfig --- a/keyserver/.flowconfig +++ b/keyserver/.flowconfig @@ -24,6 +24,8 @@ format.bracket_spacing=false +react.runtime=automatic + [lints] sketchy-null-number=warn sketchy-null-mixed=warn