Nicolò Ribaudo
e68f2ce195
Correctly handle relative browserslistConfigFile paths ( #13031 )
...
* Correctly handle relative `browserslistConfigFile`
* Fix flow
2021-03-26 15:07:28 -04:00
Huáng Jùnliàng
16d83002de
[babel 8] type checking preset-flow options ( #12751 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-26 00:33:02 +01:00
Nicolò Ribaudo
b0d83daceb
Resolve .browserslistrc as a project-wide file ( #13028 )
2021-03-25 21:37:42 +01:00
Justin Ridgewell
327b4cec49
Remove lodash sortBy use ( #13021 )
2021-03-25 18:56:18 +01:00
Justin Ridgewell
73dcd06293
Remove some lodash/cloneDeep calls ( #13032 )
2021-03-25 18:01:19 +01:00
Clint Goodman
266e07736e
fix: Don't hoist JSX elements referencing mutable variables ( #13054 )
...
issue-13051
Co-authored-by: Clint Goodman <clintgoodman@workfront.com>
2021-03-25 16:38:31 +01:00
Huáng Jùnliàng
0067fd9e02
Disallow await before exponential ( #12441 )
...
* refactor: move unary exponential check to parseMaybeUnary
* fix: disallow await before exponential
* add test cases
2021-03-25 11:20:47 -04:00
Nicolò Ribaudo
2ae19d01b1
Update fixtures ( #13045 )
...
* Update fixtures
* Update standalone tests
2021-03-24 14:18:02 +01:00
Anna Henningsen
1ef78ca55b
Expand type definitions for path.{get,set}Data to cover symbols ( #13044 )
2021-03-24 14:04:13 +01:00
JounQin
238ce0bac8
fix(types): add missing range for BaseNode ( #13046 )
...
close #13027
2021-03-24 14:02:52 +01:00
Huáng Jùnliàng
6ee87eea49
[babel 8] fallback targets to "defaults, not ie 11" ( #12989 )
2021-03-23 20:17:16 +01:00
Nicolò Ribaudo
564ca6638f
Set rootMode: "root" in loadPartialConfig ( #13040 )
2021-03-23 20:11:10 +01:00
Huáng Jùnliàng
b784c81aeb
Do not bail on SHOW_CONFIG_FOR matches ( #12954 )
...
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-03-23 20:02:07 +01:00
KevinMolotov
b360d8d614
fix: make @babel/node spawned process bubble msg ( #13037 )
...
* Add ipc test
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-03-23 14:36:49 +01:00
Nicolò Ribaudo
afef4f85ff
Move @babel/node tests ( #13037 )
2021-03-23 14:36:49 +01:00
Federico Ciardi
4f727139ec
fix(ts): Allow parenthesized "assert and assign" ( #12933 )
...
Co-authored-by: Nicolò Ribaudo <7000710+nicolo-ribaudo@users.noreply.github.com>
2021-03-22 17:00:03 +01:00
Babel Bot
edb11baabf
v7.13.12
2021-03-22 15:36:45 +00:00
Nicolò Ribaudo
4beca3999e
Fix importing polyfill plugins in the Rollup bundle ( #13017 )
2021-03-22 14:48:48 +01:00
Justin Ridgewell
2b11748555
Remove lodash from @babel/compat-data ( #13024 )
...
* Remove lodash from babel-compat-data
* Remove flatMap poorlyfill.
2021-03-20 00:11:58 +01:00
Huáng Jùnliàng
c2a42492db
Implement @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining ( #13009 )
2021-03-19 13:26:28 -04:00
Huáng Jùnliàng
85963167b4
fix: do not throw when creating type annotation based on bigint ( #12971 )
2021-03-19 11:44:11 -04:00
Justin Ridgewell
e2244c92d9
Remove lodash from @babel/node tests ( #13025 )
2021-03-19 15:53:13 +01:00
Justin Ridgewell
830a93cc97
Remove lodash/chunk ( #13022 )
2021-03-19 15:52:25 +01:00
Justin Ridgewell
d12f9a98c7
Remove lodash/pull ( #13026 )
2021-03-19 15:51:34 +01:00
Justin Ridgewell
78cf07767a
Remove lodash/has ( #13023 )
2021-03-19 15:50:52 +01:00
Huáng Jùnliàng
020c88e74b
Update compat data ( #13008 )
2021-03-19 08:33:59 -04:00
Bogdan Savluk
d1f3d30598
convert @babel/helper-member-expression-to-functions to ts ( #12925 )
2021-03-19 12:53:21 +01:00
Sosuke Suzuki
beb7cf8b24
Sort error keys with ESLint ( #13020 )
2021-03-18 21:01:57 +01:00
Bogdan Savluk
21e8e59f7d
convert @babel/helper-module-imports to typescript ( #12924 )
2021-03-18 16:05:44 +01:00
Bogdan Savluk
ff8e9f74d8
convert @babel/helper-transform-fixture-test-runner to typescript ( #12923 )
...
* babel-helper-transform-fixture-test-runner flowts rename
* babel-helper-transform-fixture-test-runner flowts convert
* babel-helper-transform-fixture-test-runner
* babel-helper-transform-fixture-test-runner eslint fixes
* babel-helper-transform-fixture-test-runner type fix
* babel-helper-transform-fixture-test-runner
* yarn install
2021-03-18 10:52:19 -04:00
Bogdan Savluk
b97a627964
convert @babel/helper-simple-access to typescript ( #12927 )
2021-03-16 15:31:59 +01:00
Bogdan Savluk
befa46567f
convert @babel/helper-replace-supers to typescript ( #12926 )
2021-03-16 13:05:15 +01:00
hajnalbendeguz
281acd6448
Improve error message when not providing a value for JSX key ( #12983 )
...
* 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>
2021-03-16 13:02:08 +01:00
Babel Bot
4b674ea031
v7.13.11
2021-03-15 09:34:23 +00:00
Nicolò Ribaudo
759f8ecdce
Point to CJS files in @babel/compat-data's exports ( #13000 )
2021-03-15 10:14:47 +01:00
Huáng Jùnliàng
0988c471e9
Parse type imports in TSImportEqualsDeclaration ( #12962 )
2021-03-14 23:34:49 +01:00
Huáng Jùnliàng
1a05b81387
Support multiple static blocks ( #12738 )
2021-03-12 23:29:55 +01:00
Huáng Jùnliàng
71417bbfcf
Fix esmodule: "intersect" on iOS versions ( #12996 )
2021-03-12 22:14:00 +01:00
Nicolò Ribaudo
8ad6b75cde
Use function rather than var to compile private methods ( #12990 )
2021-03-11 02:08:31 +01:00
Babel Bot
d1d404b9a3
v7.13.10
2021-03-08 22:23:36 +00:00
Justin Ridgewell
49a9b70cb1
Optionally enable external-helpers in tests ( #12982 )
...
* Optionally enable external-helpers in tests
https://github.com/babel/babel/pull/12911 was a breaking change that now requires you to keep `babel-plugin-external-helpers` in your `package.json`. It'll will probably be unnoticeable for most, because another dependency could transitively depend on it, but AMP recently hit it when cleaning up our deps.
* Cast to boolean
* Fix package name
2021-03-08 16:58:30 -05:00
Nicolò Ribaudo
c702895256
Update min Babel version for #12917 ( #12977 )
2021-03-07 21:09:05 +01:00
Nicolò Ribaudo
8dacf85859
Lazily initialize and cache constant JSX elements ( #12967 )
...
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-03-06 17:33:43 +01:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* 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
2021-03-05 19:55:36 +01:00
Nicolò Ribaudo
5f60bf0d14
Regenerate @babel/runtime-* package.json ( #12964 )
2021-03-04 19:18:57 +01:00
Nicolò Ribaudo
d9ebfab07f
[internal] Use the Node.js behavior for default imports ( #12795 )
2021-03-04 13:55:15 +01:00
Huáng Jùnliàng
ac758f7d70
Ensure static private method init run before static property ( #12918 )
2021-03-04 00:02:23 +01:00
Huáng Jùnliàng
bdb207cb75
Class static private field destructure set ( #12917 )
...
* 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 🚧
2021-03-03 16:38:16 -05:00
Huáng Jùnliàng
70c77e550c
check descriptor before private field access ( #12910 )
...
* fix: check descriptor before private field access
* add test cases
2021-03-03 15:06:38 -05:00
Nicolò Ribaudo
42752a430e
Don't show warning from spied console.warn ( #12946 )
2021-03-02 15:22:20 +01:00