* archive stage 4 parser plugins
* use npm protocol for archived plugins
* fix: get module.exports from archived plugins
* remove syntax-top-level-await from test options
* use npm syntax-class-static-block
* fix: fix static private field shadowed by local variable
currently throw an error, maybe we could generate correct code
fix#12960
* feat: rename local variable and add test cases
* feat: add unshadow to privateIn visitor
also add test cases
* test: add reference to shadowed variable
* refactor: apply suggested changes
simplify logic and add comments
* fix(class-properties): replace `new.target` in static properties with `undefined`
non-static prop is not affected
fix#12737
* Update packages/babel-helper-create-class-features-plugin/src/fields.ts
fix typo
Co-authored-by: Brian Ng <bng412@gmail.com>
* fix: add loose test case and fix replace condition
* test: add new.target tests for static block
* feat: move new-target replace into thisContextVisitor
defaults to replace new.target, do not replace within function
* feat: simplify thisContextVisitor
remove function visitor since environmentVisitor is skipping arrow function
* test: remove unused fixme comments
Co-authored-by: Brian Ng <bng412@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
* fix: support static private field destructure set ([C.#p] = [0])
* 🚧
* fix: add compatibility warning for older @babel/helper versions
* refactor: extract common routines among classPrivateFiled helpers
* More 🚧
* fix: evaluate initializer when a private method is set as a field
* make legacy node happy
* add accessor test cases
* fix: evaluate object before RHS
* fix: evaluate object before throwing writeOnlyError