Henry Zhu
b4b03d48fa
remove undeclared plugin [skip ci] ( #5407 )
2017-03-02 15:53:02 -05:00
Henry Zhu
0847ae055d
cleanup + update to lerna 38 ( #5406 )
2017-03-02 15:04:54 -05:00
Aaron Ang
4ad0caaa66
Merge pull request #5400 from JPeer264/fix/usage
...
[doc] Fix: comments in usage w/ options
2017-03-01 12:50:29 -08:00
JPeer264
b9c0f364c4
[skip ci] Fix: comments in usage w/ options
2017-03-01 21:35:51 +01:00
Henry Zhu
b363e7b199
add @danez's changes
2017-03-01 12:54:22 -05:00
Henry Zhu
2b9c3735fd
update to babylon beta 4
2017-03-01 12:38:19 -05:00
Henry Zhu
3ff77a61e4
Update babylon beta 3 ( #5394 )
...
* Update babylon to v7-beta.3
* convert RestProperty/SpreadProperty to RestElement/SpreadElement
* add virtual types to make it easier to upgrade
2017-02-28 16:58:19 -05:00
Daniel Tschinder
6d6cdf6baf
[7.0] Allow presets to be objects ( #5385 )
...
* Allow presets to be objects
* Improve logic to detect preset format
2017-02-28 16:39:08 -05:00
Logan Smyth
9acae54a29
Merge pull request #5376 from loganfsmyth/no-pipeline
...
[7.0] Remove the unneeded Pipeline class.
2017-02-27 12:33:11 -08:00
Henry Zhu
696e63c58b
Merge pull request #5380 from babel/extra-do + 6.x commits
2017-02-25 18:48:27 -05:00
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
Logan Smyth
f3e92010c5
Remove the unneeded Pipeline class.
2017-02-24 13:37:33 -08:00
Henry Zhu
d33d023594
Merge remote-tracking branch 'origin/master' into merge-master
2017-02-23 18:54:15 -05:00
Daniel Tschinder
87ca6150ae
[7.0] Remove bc code from preset handling and preset-es2015 ( #5128 )
...
* Remove bc code from preset handling and preset-es2015
* Add more tests
* Only allow functions for presets
* Fix lint
2017-02-22 14:58:01 +01:00
Zachary Miller
6614a63b3b
Wrap some generated do expressions in parens ( #5339 )
2017-02-22 07:50:58 -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
Marcelo Dapper
724c949244
Replace lodash/assign with Object.assign ( #5356 )
...
Remove imports to lodash/assign and replace assign with Object.assign.
The lodash/assign is unnecessary for babel 7 as node >4 has the same
functionality built-in with Object.assign as used here.
This resolve the [issue 5353](https://github.com/babel/babel/issues/5353 )
2017-02-21 22:08:20 -05:00
Logan Smyth
4ee385e96c
Avoid usage of exports/module.exports/require().
2017-02-21 16:52:42 -08:00
Henry Zhu
d9f01cbce6
Merge pull request #5317 from babel/update-babylon
...
Update to babylon@7.0.0-beta.0
2017-02-18 13:06:39 -05:00
Daniel Tschinder
7e540cdcc9
Remove obsolete code
2017-02-18 12:30:46 +01:00
Brendan Houle
07dd2b1e20
Shorthand properties examples ( #5334 )
2017-02-17 12:01:57 -06: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
Daniel Tschinder
7c62278dcd
[7.0] Change for-await to use new AST ( #5321 )
2017-02-15 17:29:09 -05:00
Alexander
1ba3269ece
[7.0] Switch decorators-legacy to decorators in the Stage 1 Preset ( #5318 ) ( #5319 )
2017-02-15 16:58:31 -05:00
Daniel Tschinder
ca78da6501
Fix variance ( #5320 )
2017-02-15 22:37:19 +01:00
Alex Kuzmenko
fa2a373acd
[7.0] Replacing current decorators with decorators-legacy ( #5290 )
2017-02-15 15:42:50 -05:00
Jason Laster
ff2c24eed2
Add test for reference paths ( #5296 )
2017-02-15 15:05:31 -05:00
Toru Kobayashi
9188be9ed5
[7.0] Rename flow AST Type ExistentialTypeParam to ExistsTypeAnnotation ( #5199 )
2017-02-15 14:58:07 -05:00
Charles Pick
bc8f476d33
[7.0] Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation ( #5229 )
2017-02-15 14:54:27 -05:00
Henry Zhu
b3e208fcd0
Update to babylon@7.0.0-beta.0
2017-02-15 14:45:21 -05:00
Logan Smyth
7dcc9708e3
Manually bump and publish babel-runtime
2017-02-14 11:26:49 -08:00
Daniel Tschinder
6c03cb0783
Merge branch 'master' into merge-master
...
# Conflicts:
# lerna.json
# packages/babel-cli/package.json
# packages/babel-core/package.json
# packages/babel-generator/package.json
# packages/babel-helper-builder-react-jsx/package.json
# packages/babel-helper-function-name/package.json
# packages/babel-helper-optimise-call-expression/package.json
# packages/babel-helper-replace-supers/package.json
# packages/babel-helper-transform-fixture-test-runner/package.json
# packages/babel-helpers/package.json
# packages/babel-plugin-transform-class-properties/package.json
# packages/babel-plugin-transform-es2015-block-scoping/package.json
# packages/babel-plugin-transform-es2015-classes/package.json
# packages/babel-plugin-transform-es2015-modules-commonjs/package.json
# packages/babel-plugin-transform-es2015-modules-systemjs/package.json
# packages/babel-plugin-transform-es2015-modules-umd/package.json
# packages/babel-plugin-transform-es2015-parameters/package.json
# packages/babel-plugin-transform-react-jsx/package.json
# packages/babel-register/package.json
# packages/babel-template/package.json
# packages/babel-traverse/package.json
# packages/babel/package.json
2017-02-14 12:46:23 +01: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
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
e1fee21529
Add charset so tests work with convert-source-map@>1.4 ( #5302 )
2017-02-13 14:37:41 -08: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
Henry Zhu
dde70c0a04
[7.0] remove standalone babel package ( #5293 )
...
Having it isn't compatible with the changes for `babel-cli -> @babel/cli`
2017-02-10 14:40:24 -05:00