* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
* Run exec tests in fresh contexts
* Reevaluate modules in every context
* Cache module code when running tests
* Eliminate weakmap accesses as much as possible
* Remove old multiline usage
* Using bundled polyfill to significantly increase performance
The individual requires for each file were the part that was sooooo slow.
* Drop LRU cache size
* Fixes
* Fix test
Co-authored-by: Huáng Jùnliàng <jlhwung@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>
* No unneeded empty arrays in transform spread
Since Array.prototype.concat creates a new array from inputs, there's
no need to call it from a new empty array ([].concat()).
* [fixup] simplify detection of new array