Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[babel 8] Disallow synchronous usage of
babel.*
callback methods (#…
…12695) * [babel 8] Disallow synchronous usage of `babel.{parse,transform{,FromAst,File}}` Disallow babel.transformFromAst synchronously Disallow using babel.transform, babel.transformFile, babel.parse synchronously chore: throw error behind BABEL_8_BREAKING flag fix: use transformFromAstSync fix: use transformSync refactor: use Babel.transformSync in standalone fix: use parseSync feat: emit deprecation message on callback-less usage chore: add tests on thrown error call sync method on undefined callback review comments address review comments chore: use loadOptionsSync for OptionManager Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * Comment out warning for now Co-authored-by: Pranav <pranav2000joglekar@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
- Loading branch information
1 parent
ad19401
commit 2ce56e8
Showing
19 changed files
with
225 additions
and
138 deletions.
There are no files selected for viewing
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 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 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 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 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 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 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
Oops, something went wrong.