Prepare repository for gradual flow->ts migration (#12317)

Co-authored-by: Bogdan Savluk <savluk.bogdan@gmail.com>
This commit is contained in:
Nicolò Ribaudo
2020-11-09 21:31:48 +01:00
parent a9bc9becc5
commit f80478c06d
15 changed files with 498 additions and 188 deletions

View File

@@ -103,6 +103,10 @@ module.exports = function (api) {
.filter(Boolean)
.map(normalize),
presets: [
[
"@babel/preset-typescript",
{ onlyRemoveTypeImports: true, allowDeclareFields: true },
],
["@babel/env", envOpts],
["@babel/preset-flow", { allowDeclareFields: true }],
],