* refactor: add recoverable error on accessorIsGenerator
* Update packages/babel-parser/src/parser/error-message.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* Apply suggestions from code review
Co-authored-by: Brian Ng <bng412@gmail.com>
* Skip TSAsExpression when transforming spread in CallExpression
* Create @babel/helper-get-call-context package
* Support OptionalCallExpressions
* Use helper in optional chaining plugin, and move tests
* Update package.json files
* Use dot notation to access property
* Remove private method tests until future MR
* Update packages/babel-plugin-transform-spread/package.json
* Rename @babel/helper-get-call-context to @babel/helper-skip-transparent-expr-wrappers
* Handle typed OptionalMemberExpressions
* Make @babel/helper-skip-transparent-expr-wrappers a dependency
* Support TSNonNullExpressions
* Use named import instead of default
* Add test for call context when parenthesized call expression has type
* Improve handling of member expressions inside transparent expression wrappers
* Add comment explaining what a transparent expression wrapper is
* Add newlines to test fixtures
* Pass correct parameter type to skipTransparentExprWrappers
* Rename to babel-helper-skip-transparent-expression-wrappers
* Remove getCallContext helper
* Fixed exports key
* Preserve types in babel-plugin-transform-spread tests
* Use external-helpers to avoid inlining helper functions in tests
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* add support for logical assignments with private properties
Patches the logic for handling assignment operators and adds support for
handling the logical assignment operators appropriately.
Fixes: https://github.com/babel/babel/issues/11646
* replace hardcoded logical assignment operators with constant
Replace a hardcoded check for logical assignment operators with the
LOGICAL_OPERATORS constant in
plugin-proposal-logical-assignment-operators.
Refs: https://github.com/babel/babel/pull/11702#discussion_r438554423
* - Added failing tests for issue #11885.
* - Fix issue #11885: absoluteRuntime does not work as expected with corejs3.
* - Removed helper code from test output files (tests for issue #11885).
* chore: add @babel/runtime-corejs3 to dev deps
* chore: update test fixtures
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* draft: showConfig support
* feat: pass through showConfig command options
* update test file
* refactor: add createLogger to makeChainWalker
* serializing dynamic plugin instance
* fix flow errors
* chore: add tests on extended config
* fix: do not print empty presets
* add more test cases
* add windows testcases
* address review comments
* throw error when showConfigPath does not exist
* print reason when showConfig is targetting an ignored file
* remove showConfig: boolean
* refactor: simplify environment flag name
* rename test fixtures
* fix: throw when SHOW_CONFIG_FOR is not a regular file
* cleanup test fixtures
* add test on only
* Update packages/babel-core/src/config/files/configuration.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* address review comments
* update test fixtures
* feat: sort config items in ascending priority
Co-authored-by: Brian Ng <bng412@gmail.com>
* chore: update compat-table
* chore: friendly to node < 14 contributors
Co-Authored-By: Brian Ng <bng412@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
* TypeScript 4.0: Support labeled tuple elements
* More tests
* Disallow mixing labeled and unlabeled elements
* Update AST shape
* Enable test after rebase
* Allow labeled spread types
* Fix flow
* Add types and generator suport
* Update packages/babel-parser/src/plugins/typescript/index.js
* Prettier