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
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
d9ebfab07f
[internal] Use the Node.js behavior for default imports ( #12795 )
2021-03-04 13:55:15 +01:00
Nicolò Ribaudo
0d9ad433b4
Fix esmodules: true without specified browsers ( #12908 )
...
* Fix `esmodules: true` without specified browsers
* fix
2021-03-02 08:16:25 +01:00
Babel Bot
2c0e8d0008
v7.13.9
2021-03-01 21:33:11 +00:00
Nicolò Ribaudo
c155caf1e8
Load .browserslistrc when using old @babel/core versions ( #12934 )
2021-03-01 20:46:02 +01:00
Babel Bot
e2abc19c4c
v7.13.8
2021-02-26 23:28:19 +00:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00
Alan Lu - 川古
6a0394634f
Don't inject invalid core-js@2 polyfills ( #12901 )
2021-02-25 21:52:21 +01:00
Nicolò Ribaudo
039eb2710d
Update all the @babel/* dependencies ( #12897 )
2021-02-25 02:46:56 +01:00
pigcan
c9da9650eb
chore: downgrade semver to ^6.3.2 ( #12890 )
2021-02-24 19:55:42 +01:00
Huáng Jùnliàng
4acb73449f
Update compat table ( #12850 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-23 15:32:54 +01:00
Babel Bot
9a4269e7b6
v7.13.5
2021-02-23 13:52:17 +00:00
Eli Gao
1484260f62
Add es6.array.slice in corejs2 builtins ( #12870 )
2021-02-23 13:49:09 +01:00
Nicolò Ribaudo
115841e778
Ensure that @babel/runtime-corejs3 imports are injected ( #12869 )
...
* Add failing test for #12863
* Minimal
* Ensure that `@babel/runtime-corejs2` imports are injected
2021-02-23 12:47:04 +01:00
Nicolò Ribaudo
c827193d9c
v7.13.0
2021-02-22 23:35:18 +01:00
Nicolò Ribaudo
771841f764
Fix _isNativeReflectConstruct helper ( #8461 )
2021-02-22 22:49:44 +01:00
Nicolò Ribaudo
484667b54c
Use babel-plugin-polyfill-* packages in transform-runtime ( #12845 )
2021-02-22 22:30:27 +01:00
Huáng Jùnliàng
ba4ac7d587
chore: bump semver to 7.0.0 ( #12015 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-21 23:56:43 +01:00
Nicolò Ribaudo
143ee801e6
Use the babel-plugin-polyfill-* packages in preset-env ( #12583 )
2021-02-21 17:40:29 +01:00
Nicolò Ribaudo
7965c15557
Add @babel/core support for the new assumptions option ( #12219 )
...
- Disallow setting assumptions to `false` in presets (#12498 )
2021-02-21 17:09:45 +01:00
Nicolò Ribaudo
cb404e4776
Add targets and browserslist* options to @babel/core ( #12189 )
2021-02-21 17:09:43 +01:00
Huáng Jùnliàng
af2ed36535
chore: bump core-js-compat ( #12821 )
2021-02-19 13:27:38 +01:00
Nicolò Ribaudo
2f755ef052
v7.12.17
2021-02-18 15:58:43 +01:00
Babel Bot
dd5c9f958c
v7.12.16
2021-02-11 22:36:24 +00:00
Nicolò Ribaudo
e735266dee
Avoid importing .json files ( #12759 )
...
* Avoid importing `.json` files
* Use ESold in babel.config.json
* Use `import/extensions` eslint plugin
2021-02-05 23:34:36 +01:00
Nicolò Ribaudo
d291edbdf1
v7.12.13
2021-02-03 01:59:31 +01:00
Huáng Jùnliàng
108564fdad
refactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed ( #12716 )
...
* refactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed
* tweak logic
* early exit when errors are before thrown error position
* fix: always return true in assert.throws callback
See https://nodejs.org/api/assert.html#assert_assert_throws_fn_error_message
* update test fixtures
* fix flow error
2021-02-01 10:46:43 -05:00
Armano
6783308875
fix: allow to execute util scripts ( #12670 )
...
[skip ci]
2021-01-22 00:31:09 +01:00
Huáng Jùnliàng
6e9a174e7f
fix: print warning messages to stderr ( #12626 )
2021-01-14 08:45:48 -05:00
Huáng Jùnliàng
eda4130d5e
Tweak helper compilation targets ( #12615 )
...
* refactor: simply browserslists defaults overwriting
When `hasTargets` is `false`, `targets` is always an empty object by definition, `objectToBrowserslist({})` always return `[]` therefore we can remove `objectToBrowserslist`.
* test: apply external-helpers on preset-env test fixtures
* test: add ie 6 to force all transforms in corejs 3, debug, corejs 2 fixtures
* Add ie 6 as targets for test fixtures
2021-01-12 13:09:45 -05:00
Nicolò Ribaudo
606c91cd33
[babel 8] Remove uglify target support in preset-env ( #12594 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-01-08 17:58:44 +01:00
Daniel Arthur Gallagher
e8b08523f4
docs: add package-specific documentation links ( #12531 )
...
[skip ci]
2021-01-06 14:11:53 +01:00
Nicolò Ribaudo
fb12afc289
Declare template objects inline ( #12588 )
2021-01-05 23:25:15 +01:00
Nicolò Ribaudo
a1acfba387
v7.12.11
2020-12-16 00:55:11 +01:00
Huáng Jùnliàng
1382437ad6
Add js extension to preset-env generated polyfill imports ( #10862 )
2020-12-10 20:16:46 +01:00
Nicolò Ribaudo
e901454096
v7.12.10
2020-12-09 23:44:59 +01:00
Andrew Smith
71f87874ce
Clarify warning source about underspecified corejs option in preset-env. ( #12402 )
...
* Clarify these warnings are for babel-preset-env.
* Fix lint.
* Fix specs.
* Fix merge conflict.
* PR feedback.
2020-12-01 08:58:06 +00:00
Huáng Jùnliàng
9891c020b1
Bump core-js-compat to version 3.8.0 ( #12399 )
2020-11-25 22:46:07 +01:00
Nicolò Ribaudo
23226d93d4
v7.12.7
2020-11-20 22:02:43 +01:00
Huáng Jùnliàng
2db500451b
Bump caniuse-lite resolutions ( #12368 )
2020-11-17 16:38:02 +01:00
Brian Ng
08c7280167
Fix support for polyfilling Array.prototype.values in core-js@2 ( #12340 )
2020-11-10 16:43:11 +01:00
Nicolò Ribaudo
2984f0cb88
Use the correct context when re-using a cached NodePath ( #12331 )
2020-11-10 15:03:21 +01:00
Nicolò Ribaudo
32279147e6
Update core-js-compat ( #12323 )
...
* Update `core-js-compat`
* Update lockfile
2020-11-06 18:19:57 +01:00
Álvaro Mondéjar
b649f8d192
Fix packages documentation README links. ( #12289 )
2020-10-30 21:19:21 +01:00
Huáng Jùnliàng
5b48f40a08
Polish parser errors ( #12258 )
...
* polish: update AwaitNotInAsyncFunction message
* polish: update YieldInParameter error message
* Apply suggestions from code review
Co-authored-by: Brian Ng <bng412@gmail.com>
* update test fixtures
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-26 20:55:04 -04:00
Nicolò Ribaudo
b4ae7b7893
Update to Browserslist 4.14.5 ( #12241 )
2020-10-23 21:15:49 -04:00
Nicolò Ribaudo
ed498a772b
Use workspace:* for devDependencies (again) ( #12217 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-10-19 18:32:06 +02:00
Nicolò Ribaudo
7f4b83833f
v7.12.1
2020-10-16 00:36:30 +02:00