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 @@ -15,6 +15,7 @@ [options] enums=true +react.runtime=automatic module.file_ext=.js module.file_ext=.cjs