mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* [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 <[email protected]>
Co-authored-by: Nicolò Ribaudo <[email protected]>
* Comment out warning for now
Co-authored-by: Pranav <[email protected]>
Co-authored-by: Nicolò Ribaudo <[email protected]>