-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge transformer branch - rewrite of the language plugin. It now gen…
…erates Flow types using the officially maintained Flow language plugin, then parses that and creates an intermediate, generalized structure of what types exist for the operation, and then finally reprints that as Reason types using the same structure as before. The reason for this change is and attempt to make the language plugin much more resilient to updates/development of the official language plugin. The former solution was mimicking what the official Flow language plugin is doing, but maintaining that with the rapid development that the Relay team is doing internally proved too difficult. This has a few trade offs, like needing a few changes to the official plugin (which is now done in our vendored fork of the compiler), but I still think it's a better solution in the long run.
- Loading branch information
Showing
86 changed files
with
2,117 additions
and
9,662 deletions.
There are no files selected for viewing
20 changes: 12 additions & 8 deletions
20
packages/reason-relay/language-plugin/babel.config.js
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
module.exports = { | ||
presets: [ | ||
'@babel/flow', | ||
[ | ||
'@babel/preset-env', | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
node: 'current' | ||
node: "current" | ||
} | ||
} | ||
] | ||
], | ||
plugins: ['@babel/plugin-proposal-nullish-coalescing-operator', ['module-resolver', { | ||
alias: { | ||
'bs-platform/lib/es6': 'bs-platform/lib/js' | ||
} | ||
}]] | ||
plugins: [ | ||
[ | ||
"module-resolver", | ||
{ | ||
alias: { | ||
"bs-platform/lib/es6": "bs-platform/lib/js" | ||
} | ||
} | ||
] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
packages/reason-relay/language-plugin/flow-typed/npm/@babel/cli_vx.x.x.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.