* Don't insert `__self: this` prior to `super()` calls (#13550)
`__self: this` is inserted for debugging purposes. However, it will cause a runtime error if it is inserted prior to a `super()` call in a constructor. This commit will prevent `__self: this` from inserted when there is a following `super()` call.
* Prevent adding `__self` within a constructor that has `super()` altogether.
* Fix 2 typos in the comments.
* Add an additional test case for constructors that do not have a `super()` call.
* Detect `super()` call by testing whether the class has a superclass.
* Update method name and corresponding comments
* Add an additional test for the case where the derived class do not have a `super()` call.
* Apply the same changes to babel-plugin-transform-react-jsx
* Improve error message when not providing a value for key
* Update packages/babel-plugin-transform-react-jsx/src/create-plugin.js
Show location of attribute instead of only the path
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Change error message to be less aggressive
* Throw error when runtime is "classic"
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* 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
* chore: use yarn 2
* chore: remove redundant yarn locks
* chore: remove publishEslintPkg
* chore: remove redundant make bootstrap
* Update .yarnrc.yml
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
* chore: use workspace protocol for eslint packages in the root
Co-Authored-By: merceyz <merceyz@users.noreply.github.com>
* chore: pin caniuse-lite versions
Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie
depends on specific caniuse-lite versions. We pinned the version here
so we don't have to deal with fixture different in e2e-tests
where all deps will be updated and tested.
* chore: resolve yarn install warnings
* chore: update yarn cache path on circle/travis
* chore: add yarn deduplicate plugin
* chore: deduplicate lock files
* chore: move devDependencies to leaf packages
* chore: remove @yarnpkg/plugin-constraints
* chore: remove unused dedupe options
* test: fix unwanted self reference
* chore: remove output-file-sync dependency
* chore: update browserify to 16.5.2
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>