Raja Sekar
dbf3f91f1e
Revert "Prevent ignored files in out dir ( #10831 )" ( #10886 )
...
This reverts commit 2b3590929b4eb955b0e8b287f9749b5af66cc1a0.
2019-12-18 11:17:35 +01:00
Huáng Jùnliàng
aa814073b7
Ignore some files in npm package ( #10882 )
2019-12-17 23:53:53 -06:00
Nicolò Ribaudo
3d7bc435d5
Allow -r from node_modules with @babel/node ( #10871 )
2019-12-17 23:31:26 -06:00
Raja Sekar
2b3590929b
Prevent ignored files in out dir ( #10831 )
...
Co-Authored-By: Brian Ng <bng412@gmail.com>
2019-12-17 21:39:36 -06:00
Huáng Jùnliàng
b3c7df9314
fix: avoid string copy when processing input source-map ( #10885 )
...
Co-Authored-By: Justin Ridgewell <justin@ridgewell.name>
2019-12-17 21:12:55 -06:00
Huáng Jùnliàng
ff8a295ea7
chore: download compat-table when build-data is run ( #10873 )
2019-12-17 21:12:10 -06:00
Aziz Khambati
a0d76a8c0e
Fix pragmaFrag spelling in error message ( #10868 )
2019-12-16 09:55:08 -05:00
Huáng Jùnliàng
bffa415b83
Check shadow variable to identifier in default parameters ( #10053 )
...
When there is a variable declaration inside the function body, which shares its name to a referenced identifier in default parameter expression, the function body should be wrapped into iife, otherwise the binding in default parameter scope will be shadowed by function body.
2019-12-13 14:39:37 +01:00
Nicolò Ribaudo
0b3f883ed1
Properly serialize non-json values in parser tests ( #10858 )
2019-12-12 10:22:17 +01:00
Kai Cataldo
7b54a94389
@babel/eslint-parser: fix ImportExpression node to match ESTree spec ( #10828 )
...
* @babel/eslint-parser: fix ImportExpression node to match ESTree spec
* Update caller name for @babel/core.parseSync
* Move logic into estree plugin
* Add estree plugin tests
* Fix Flow error
* Fix flow
* Remove extra properties on ImportExpression node
* Incorporate review feedback
2019-12-11 11:13:57 +01:00
Nicolò Ribaudo
5156d3ea06
Restore @babel/parser tests ( #10854 )
...
* Make parser tests work again
* Update failing fixtures
* Fix serialization of BigInt
* Fix
2019-12-11 11:09:13 +01:00
Bowei Han
20e43ad103
validate parentheses in the left-hand side of assignment expressions ( #10576 )
...
* invalid left-hand assignments based on parenthesis
* validate against nested ParenthesizedExpressions
2019-12-09 20:29:02 -05:00
Huáng Jùnliàng
f02e5e6d0a
Add missing dev dependencies ( #10847 )
...
* chore: declare eslint-import-resolver-node dependency
# Conflicts:
# yarn.lock
* chore: add devDependencies
* Add browserify devDep to babel-register
# Conflicts:
# packages/babel-register/package.json
# yarn.lock
* chore: resolve eslint-scope to 5.0.0
2019-12-09 23:56:22 +01:00
Nicolò Ribaudo
2884bac44b
Use async-to-generator even when regenerator is enabled ( #10839 )
...
While it isn't technically needed because regenerator already handles
async functions, it doesn't play well with the Promise detection logic
used by @babel/preset-env's useBuiltIns and @babel/transform-runtime.
The plugin exclusion logic isn't removed, because
1) it will be useful when merging @babel/preset-modules
into @babel/preset-env
2) if/when regenerator will support injecting a custom promise,
we can enable this optimization again
2019-12-09 16:54:25 -05:00
Huáng Jùnliàng
b7989419c7
Update corejs fixtures ( #10846 )
...
* chore: add update-env-corejs-fixture recipe
* chore: update corejs fixtures
2019-12-09 19:50:34 +01:00
Huáng Jùnliàng
0164662944
refactor: rewrite available-plugins to esm ( #10837 )
2019-12-08 14:53:28 +01:00
Kai Cataldo
fb100eee41
@babel/eslint-parser: fix BigIntLiteral node to match ESTree spec ( #10827 )
...
* @babel/eslint-parser: fix BigIntLiteral node to match ESTree spec
* Move token conversion to @babel/eslint-parser
* Add estree plugin tests
* Update test helpers to handle BigInt serializing
* Update Literal union type to include BigIntLiteral
* Add FlowIgnore comment for BigInt
2019-12-08 02:59:18 +01:00
Nicolò Ribaudo
f753c48f74
v7.7.6
2019-12-08 00:25:57 +01:00
Huáng Jùnliàng
4436ffd604
Revert "Add ".js" extension to injected polyfill imports ( #10549 )" ( #10835 )
...
This reverts commit d3a37b5d08074c007268eb15a11ae432165bad5d.
2019-12-07 23:05:35 +01:00
Nicolò Ribaudo
d04508e510
v7.7.5
2019-12-06 14:12:41 +01:00
shimataro
d3a37b5d08
Add ".js" extension to injected polyfill imports ( #10549 )
...
* Node modules compatibility: add ".js" extension to imported polyfills
* Update fixtures
* add extensions on calling `addDefaultImport()`, not in the function.
2019-12-06 13:30:23 +01:00
Huáng Jùnliàng
c9a68984d6
babel --watch should have equivalent file selection logic with babel (#10283 )
...
* fix(watcher): skip non-compilable file only when it is not included in filenames argument
* perf: disable globbing for watch
2019-12-05 08:28:52 +01:00
Huáng Jùnliàng
c6e966cac9
[parser] Use scope flags to check arguments ( #10801 )
...
* chore: add test case
Co-authored-by: Jens Maier<jens@elberet.de>
* use scope flags to check arguments
2019-12-05 08:23:53 +01:00
Huáng Jùnliàng
a0bed42aec
Bundle standalone using rollup ( #10779 )
...
* chore: bundle babel-standalone via rollup
Co-authored-by: Daniel Tschinder <daniel.tschinder@researchgate.net>
* chore: build babel-preset-env-standalone via Rollup
# Conflicts:
# yarn.lock
* chore: add babelEnvName
* chore: farewell webpack
* chore: add terser minification
* chore: dedupe some popular dependencies
* chore: remove unused devDependencies
* chore: move plugin-babel-source to scripts/
* make prettier happy
* fix: rewrite available-plugins into esm
* chore: add extra unambiguous sources when env is rollup/standalone
2019-12-04 23:09:52 -05:00
Huáng Jùnliàng
e94da0dce5
Incorrect trace position in fixture runner ( #10566 )
...
* test: add test case
* fix: incorrect fixture callsite position
2019-12-05 00:35:37 +01:00
Alex Lewis
bb6cc61979
fix(optional chaining): Optional delete returns true with nullish base ( #10806 )
...
Per issue 10805, the return value when using delete on a nullish base is
currently undefined. The correct return type should be true.
2019-12-04 12:56:25 +01:00
Nicolò Ribaudo
3d0c5d2afc
Do not transpile typeof helper with itself in babel/runtime ( #10788 )
...
* Do not transpile typeof helper with itself in babel/runtime
* Nits
* Remove console.log
2019-12-04 01:09:14 +01:00
YeonJuan
d18afbd7c3
Allow tuple rest trailing comma ( #10800 )
2019-12-03 18:32:36 +01:00
Nicolò Ribaudo
5440ae1cae
Correctly disambiguate / after async fuctions ( #10475 )
...
* Correctly disambiguate / after async fuctions
2019-12-02 22:41:39 +01:00
Nicolò Ribaudo
8f89167486
Update core-js-compat ( #10795 )
...
* Update core-js-compat
* Update lockfile
2019-12-02 22:30:21 +01:00
Jaroslav Kubíček
26c0a32c7c
refactor: Improve error message in @babel/core when root config is not found ( #10778 )
2019-12-01 00:07:05 +01:00
Jaroslav Kubicek
a6e8b3843b
chore: update snapshot for corejs3 targets unit test
2019-11-29 14:49:08 -05:00
Huáng Jùnliàng
4e774b7264
fix: rewriteBindingInitVisitor should skip on scopable node ( #10764 )
2019-11-26 08:51:11 +01:00
Nicolò Ribaudo
01c33a5719
Fix dependencies on @babel/* packages ( #10762 )
...
* Remove dep on Babel 7 beta
* Add missing dependencies used in babel.config.js
* Update lockfile
2019-11-25 21:48:12 +01:00
Nicolò Ribaudo
75767d87cb
v7.7.4
2019-11-23 00:05:58 +01:00
Nicolò Ribaudo
1b4cfc21d9
Add support for native esm to @babel/runtime ( #10748 )
...
* Add support for native esm to @babel/runtime
* Test
* Do not remove new package.json files
* Remove git diff
2019-11-22 23:59:30 +01:00
Huáng Jùnliàng
683adcbb70
Reduce standalone build size ( #10668 )
...
* infra: build standalone against src
* infra: add absoluteRuntime
# Conflicts:
# babel.config.js
* chore: remove `process.env` replace
* add $ to signify exact match
credits to Nicolò
2019-11-21 14:31:38 +01:00
Brian Ng
83fc3f2623
Update preset-env mappings ( #10742 )
2019-11-20 18:48:38 -05:00
George Zahariev
01d6d6dd3b
Flow enums: fix enum body location ( #10737 )
2019-11-19 22:46:08 -06:00
Huáng Jùnliàng
6ba113197f
fix: add missing available plugins to babel-preset-env-standalone ( #10732 )
...
* fix: add missing available plugins to babel-preset-env-standalone
* skip available-plugins test in CI coverage test
2019-11-18 14:29:18 -05:00
Brian Ng
a502d88043
Fix some incorrect typeof parsing in flow ( #10657 )
2019-11-18 19:22:27 +01:00
gr
10213655bc
[parser] Allow optional async methods ( #10582 )
...
* Add parsePostMemberNameModifiers to aync method
* Add test
2019-11-18 19:18:36 +01:00
Huáng Jùnliàng
cfd26fdbf2
register ImportEqualsSpecifier to scope ( #10710 )
...
Co-authored-by: <jaejoon.choi>
2019-11-18 13:04:34 -05:00
Brian Ng
c37361ba2e
Bump prettier@1.19.1 ( #10728 )
2019-11-16 16:05:40 +01:00
Kai Cataldo
a6d134804a
Unify build step for ESLint packages ( #10723 )
2019-11-16 10:15:15 +01:00
Arun Kumar Mohan
1b75fe3cba
chore: fix typo: prest -> preset ( #10726 ) [ci-skip]
2019-11-15 23:56:59 -05:00
Huáng Jùnliàng
3846d2a7fa
chore: fix typo ( #10725 )
2019-11-15 20:56:32 -06:00
Huáng Jùnliàng
6c7f8291d4
polish: skip creating extra reference for safely re-used node ( #10720 )
...
* polish: skip creating extra reference for safely re-used node
* reimplement using scope.maybeGenerateMemoised
2019-11-16 01:11:03 +01:00
Huáng Jùnliàng
e1839e5ec9
Circumvent typeof transform for umd build template ( #10701 )
...
* add test case
* fix: circumvent typeof transform
* chore: update test fixtures
2019-11-13 22:47:56 +01:00
ZYSzys
1d1101eb7c
Add missing flow type to babel-cli for consistency ( #10692 )
2019-11-13 17:39:19 +01:00