Henry Zhu
6529cb5f01
babel-generator: add another do test
2017-02-25 18:39:18 -05:00
Alex Kuzmenko
01918c68c1
Improve babel-generator's code coverage ( #5338 )
2017-02-25 13:26:29 -05:00
Sven SAULEAU
eb9d699ce9
style: [skip ci] lint code snippets in md ( #5379 )
2017-02-25 12:19:29 -05:00
Zachary Miller
6614a63b3b
Wrap some generated do expressions in parens ( #5339 )
2017-02-22 07:50:58 -05:00
Daniel Tschinder
be293bd708
Enable codecov partial coverage ( #5336 )
2017-02-21 22:40:11 -05:00
Aaron Ang
c1c9ac4e11
Add section to CONTRIBUTING about debugging code ( #5354 ) [skip ci]
2017-02-21 22:26:52 -05:00
Aaron Ang
3a6d85e55e
Remove redundant NODE_ENV=test in Makefile ( #5350 )
...
`NODE_ENV=test` is exported by default. Therefore, targets that set `NODE_ENV` to `test` are cleaned up.
2017-02-21 22:14:59 -05:00
JeongHoon Byun (aka Outsider)
2de4b08c51
Add test for passing arguments to babel-node ( #5163 ) ( #5342 )
2017-02-21 22:14:26 -05:00
Izaak Schroeder
8d9195f862
Pass dirname as extra metadata to preset constructor. ( #4834 )
...
* Pass `dirname` as extra metadata to preset constructor.
Sometimes a preset would like to know where it should resolve relative paths from (e.g. https://github.com/tleunen/babel-plugin-module-resolver ) and this extra information makes that possible.
* Test for `dirname` passed into preset constructor
This adds a check for `dirname`’s existence and correctness to the
`resolve-addons-relative-to-file` test, and serves as a minimal example
of a path-aware preset.
2017-02-21 22:13:03 -05:00
Artem Yavorsky
02f51fb7a5
[skip ci] Add devEngines to package.json ( #5312 )
2017-02-21 22:10:33 -05:00
Alex Kuzmenko
b5246994b5
Update CONTRIBUTING.md: include make build ( #5349 ) [skip ci]
2017-02-21 10:09:31 -05:00
Daniel Tschinder
2974a82df1
Add babel-bot to team ( #5355 ) [skip ci]
2017-02-21 08:44:40 -05:00
Brian Ng
7b63af0e91
Fix typo in CONTRIBUTING.md [skip ci]
2017-02-20 11:37:04 -06:00
Brendan Houle
07dd2b1e20
Shorthand properties examples ( #5334 )
2017-02-17 12:01:57 -06:00
Zachary Miller
d55a775024
Update CONTRIBUTING.md with respect to coverage check [skip ci] ( #5329 )
2017-02-16 22:14:16 -05:00
Joe Lencioni
69c6d27794
Improve syntax highlighting in readme for JSX ( #5331 ) [skip ci]
2017-02-16 20:36:05 -05:00
Wilhelmina Drengwitz
7e59f86444
Fix 'o' is undefined in example code ( #5327 ) [skip ci]
2017-02-16 15:24:20 -05:00
Daniel Tschinder
28853bf190
Fix for-await printing ( #5322 )
...
Only the first for-await was correctly printed all subsequent for-await statements
where printed as for-of as the variable op was changed inside the buildForXStatement
2017-02-15 17:43:06 -05:00
Jason Laster
ff2c24eed2
Add test for reference paths ( #5296 )
2017-02-15 15:05:31 -05:00
Brian Ng
b77c435f0f
Ignore babel-register test artifacts ( #5316 ) [skip ci]
2017-02-15 14:38:54 -05:00
Sergey Rubanov
958f72ddc2
Add name field to package.json ( #5311 ) [skip ci]
2017-02-15 10:55:12 -05:00
Logan Smyth
7dcc9708e3
Manually bump and publish babel-runtime
2017-02-14 11:26:49 -08:00
Logan Smyth
11cf0e0b50
Revert lerna again
2017-02-13 18:18:45 -08:00
Logan Smyth
9cae61911d
v6.23.1
2017-02-13 18:18:17 -08:00
Logan Smyth
454933ef76
Revert "Rewrite Hub as interface #5047 " ( #5306 )
2017-02-13 18:15:50 -08:00
Logan Smyth
48709e9fa4
Revert change that lerna force-committed.
2017-02-13 17:20:18 -08:00
Logan Smyth
48573f1fb4
v6.23.0
2017-02-13 17:14:12 -08:00
Logan Smyth
24400c5b66
Update babel-types README from script.
2017-02-13 15:00:37 -08:00
Logan Smyth
cc5750d151
Add CHANGELOG for 6.23.0 [skip ci] ( #5304 )
2017-02-13 14:57:26 -08:00
Logan Smyth
e1fee21529
Add charset so tests work with convert-source-map@>1.4 ( #5302 )
2017-02-13 14:37:41 -08:00
Logan Smyth
1c1e9c764b
Revert "Upgrade lerna to current beta." ( #5303 )
2017-02-13 14:20:10 -08:00
Logan Smyth
8a28c07d20
Upgrade lerna to current beta. ( #5300 )
2017-02-13 14:01:57 -08:00
Brian Ng
6522a255d9
Add greenkeeperio-bot to mention-bot blacklist ( #5301 ) [skip ci]
2017-02-13 16:56:12 -05:00
Ben Alpert
14d3c2e256
Avoid adding unnecessary closure for block scoping ( #5246 )
...
When you write
```
for (const x of l) {
setTimeout(() => x);
}
```
we need to add a closure because the variable is meant to be block-scoped and recreated each time the block runs. We do this.
However, we also add the closure when no loop is present. This isn't necessary, because if no loop is present then each piece of code runs at most once. I changed the transform to only add a closure if a variable is referenced from within a loop.
2017-02-13 13:46:00 -08:00
Yongxu Ren
2985597d40
Rewrite Hub as interface #5047 ( #5050 )
...
* Rewrite Hub as interface #5047
* Update index.js
2017-02-13 12:49:10 -08:00
Justin Ridgewell
ca45904a45
Fix loose for-of with label ( #5298 )
2017-02-13 10:30:36 -05:00
Samuel Reed
2aa2de8c6f
feature: Support pure expressions in transform-react-constant-elements ( #4812 )
2017-02-12 20:02:38 -08:00
Logan Smyth
4edcd02965
Fix linting error
2017-02-12 18:48:07 -08:00
Samuel Reed
f4e3dfee74
Fix PathHoister hoisting before bindings. ( #5153 )
...
Fixes #5149 and enables a few additional safe hoists.
2017-02-12 18:35:08 -08:00
Samuel Reed
eb91bd831c
Fix PathHoister hoisting JSX member expressions on "this". ( #5143 )
...
The PathHoister ignored member references on "this", causing it
to potentially hoist an expression above its function scope.
This patch tells the hoister to watch for "this", and if seen,
mark the nearest non-arrow function scope as the upper limit
for hoistng.
This fixes #4397 and is an alternative to #4787 .
2017-02-12 18:34:07 -08:00
james kyle
75ac320cf7
Add new flow preset ( #5288 )
2017-02-09 16:45:38 -08:00
Brian Ng
6da9bb83df
Prevent multiple return statements in a loop when replacing expressions ( #5030 )
2017-02-09 13:06:41 -08:00
jwbay
1a325ce5d5
codegen performance: use trim-right instead of lodash/trimEnd ( #5255 )
2017-02-09 13:04:42 -08:00
Sven SAULEAU
fb0a91b750
Fix TypeError with babel-register's cache ( #5260 )
2017-02-08 15:24:23 -05:00
Boopathi Rajaa
f8ffe03e79
Deopt evaluation of undefined with a local binding. Fix #5204 ( #5206 )
2017-02-08 10:37:14 -05:00
Mark Jones
5c5262437e
Add definition of stage 3 ( #5253 ) [skip ci]
2017-02-08 10:25:43 -05:00
Mark Jones
64e7d76b6b
Added info about stage 2 ( #5252 ) [skip ci]
2017-02-08 10:25:10 -05:00
Mark Jones
01eabd0d34
Add background for stage 1 ( #5251 ) [skip ci]
2017-02-08 10:23:54 -05:00
Jimmy Jia
9de923258c
Don't transpile ES7 symbol properties ( #5195 )
2017-02-07 11:19:14 -05:00
Vicente Jr Yuchitcho
1ba4a3fe5d
Add path sibling traversal methods ( #5230 )
...
* getPrevSibling
* getNextSibling
* getAllNextSiblings
* getAllPrevSiblings
2017-02-07 11:17:50 -05:00