2185 Commits

Author SHA1 Message Date
Jeff Morrison
b820d8ebc9 Strip Flow's new shorthand import-type specifiers 2017-01-13 13:24:33 -05:00
Simon Lydell
d2113d4881 babel-code-frame: Upgrade to js-tokens@3 (#5094)
That version brings a big performance boost.
2017-01-13 12:11:44 -05:00
Sérgio Batista
3a1c0c84fb Fix broken repository url (#5100) 2017-01-13 15:16:07 +01:00
Ryan Tsao
39d18679e1 Fix getBindingIdentifiers in babel-types (#5068)
* Added getBindingIdentifier tests

* Added failing test for getBindingIdentifiers

* Fix babel-types getBindingIdentifiers
2017-01-09 09:08:07 -05:00
Daniel Tschinder
dc617129f6 Optimize removal-hooks for ArrowFunctions (#5076) 2017-01-09 09:05:23 -05:00
Karsten Gohm
de1a76413f Static function call result comment does not match variable content (#5077)
static staticProperty, defined in line 18, value is 'babeliscool' but comment on line 33 the given sample output is 'babelIsCool'. 
this commit fixes this inconsistency
2017-01-09 09:02:19 -05:00
Andres Suarez
796c6c0763 Remove unused dependency (#5038) 2017-01-05 08:17:16 -05:00
Brian Ng
2a8d3173d3 Remove unused define-map helper from computed-properties (#5053) 2017-01-05 08:16:35 -05:00
Brian Ng
f611cab0f5 Fix some doc lint issues (#5061)
* Remove duplicate usage section from transform-es2015-classes [skip ci]

* Fix doc lint issue with transform-function-bind [skip ci]
2017-01-02 09:01:08 +01:00
Sven SAULEAU
39cda64fe2 docs: [skip ci] incorrect snippet language (#5059) 2017-01-01 14:59:50 +01:00
Sven SAULEAU
fbeadc46ea [skip ci] merge documentation with the website 2016-12-28 21:49:40 +01:00
gitanupam
438c872e64 Adding more info to the Install section
It was confusing to see the Install command for babel-present-react again when the earlier command to install CLI also included babel-preset-react. Hence the edit.
2016-12-28 16:24:00 +05:30
Brian Ng
b1635f8c05 Fix some README links [skip ci] (#5045) 2016-12-27 09:30:14 -05:00
Janus Troelsen
b2e6926042 Upgrade glob to v7 (#5027) 2016-12-22 23:57:53 +01:00
chico
07b5b0edf8 fix one more fixture 2016-12-21 19:28:36 +03:00
chico
2d7703afd9 Like was discussed in Slack chat with @ljharb and @hzoo spaces was added with no particular reason.
https://babeljs.slack.com/archives/discussion/p1481744017001806

I'm still not sure if everything here is correct (for example source maps)
2016-12-21 19:14:39 +03:00
Logan Smyth
ce0c620a9f Merge pull request #4729 from rmacklin/add-resolvePlugin-and-resolvePreset
Add resolvePlugin and resolvePreset methods to babel-core API
2016-12-20 08:42:27 -08:00
Sven SAULEAU
8edc1d9530 Merge pull request #5014 from babel/xtuc-patch-2
Update babel-core's README
2016-12-18 15:21:51 +01:00
Logan Smyth
1a8150ef97 v6.21.1 2016-12-17 21:15:33 -08:00
Logan Smyth
dbc07220ae Revert babel-helper-builder-react-jsx change from #4988 2016-12-17 20:50:03 -08:00
Sven SAULEAU
9d76f0b2de [skip ci] update README 2016-12-17 16:37:45 +01:00
Sven SAULEAU
3ef8e61d72 [skip ci] update babel-core's README 2016-12-17 12:41:49 +01:00
Henry Zhu
77d9e3e5c4 v6.21.0 2016-12-16 16:55:53 -05:00
Henry Zhu
3c28b4e1ac remove old code/license [skip ci] 2016-12-16 16:54:08 -05:00
Henry Zhu
542e4e9ee1 update babel-types readme [skip ci] 2016-12-16 16:50:41 -05:00
Henry Zhu
a73115f401 update core [skip ci] 2016-12-16 16:49:58 -05:00
Dan Harper
d90aaf2c76 Print Flow optional & type annotations in function params with defaults (#4872)
Fixes #4863
2016-12-16 15:31:05 -05:00
Brian Ng
01bc43464e Ensure directives get printed in block statements (#4873) 2016-12-16 15:30:14 -05:00
Justin Ridgewell
2bbc36d25e JSXSpreadChildren, throw in transform-react-jsx (#4988) 2016-12-16 15:30:00 -05:00
Henry Zhu
670ee996c8 Merge pull request #4940 from appden/fix-react-constant-elements
Fix React constant element bugs
2016-12-16 15:29:05 -05:00
Christoph Pojer
003d03789f Merge pull request #4979 from davidaurelio/generator-raw-mappings
babel-generator: Expose raw mappings
2016-12-16 20:00:48 +00:00
Henry Zhu
bfe4faa0d9 fix tests 2016-12-16 11:50:57 -05:00
Justin Ridgewell
852348d700 Fix default parameter - rest parameter edge case (#3572)
When the rest parameter shared the same name as a default identifier
for a param, the loop would be hoisted outside the function!

```js
var a = 1;

for (var _len = arguments.length, a = Array(_len > 1 ? _len - 1 : 0),
_key = 1; _key < _len; _key++) {
  a[_key - 1] = arguments[_key];
}

function foo2() {
  var b = arguments.length <= 0 || arguments[0] === undefined ? a :
arguments[0];

  assert.equal(b, 1);
}
foo2(undefined, 2);
```

And if you tried to reference any index or `#length`, it’d blow up and
refuse to transpile.
2016-12-16 10:53:52 -05:00
Brian Ng
196cdd4dce Bail on sharing comments with siblings if key is a string (#5007) 2016-12-16 10:52:48 -05:00
Henry Zhu
69a9f6bf70 babel-helper-transform-fixture-test-runner: pass require as a global (#4999) 2016-12-16 10:51:37 -05:00
David Aurelio
2907d663dc add comments 2016-12-16 01:12:50 +00:00
David Aurelio
4cb7e5009a Add missing property descriptor values 2016-12-14 10:18:18 +00:00
Henry Zhu
0ed97ce941 make installing runtime/transform-runtime clearer [skip ci] (#4991) 2016-12-11 21:04:24 -05:00
Brian Ng
7b5e6f1e50 Add example to es2015-unicode-regex [skip ci] (#4983) 2016-12-09 11:55:19 -05:00
David Aurelio
7ea283eb82 babel-generator: Expose raw mappings
Exposes raw mappings when source map generation is enabled. To avoid the cost of source map generation for consumers of the raw mappings only, `.map` is changed to a getter that generates the source map lazily on first access.
2016-12-09 09:55:42 +00:00
Henry Zhu
71a9e3275d v6.20.3 2016-12-08 21:55:37 -05:00
Logan Smyth
5aa87aab8d Calculate the correct arity for async functions with destructuring - fixes #4977 (#4978) 2016-12-08 21:51:24 -05:00
Henry Zhu
d597678def v6.20.2 2016-12-08 20:15:21 -05:00
Henry Zhu
cfc1e5cb38 fix object spread (#4976) 2016-12-08 20:13:57 -05:00
Henry Zhu
07d49ffabf update readme [skip ci] 2016-12-08 19:33:55 -05:00
Henry Zhu
2bb9ab04e3 v6.20.1 2016-12-08 19:32:27 -05:00
Henry Zhu
88bc28c414 Fix nested object spread (#4974) 2016-12-08 19:30:50 -05:00
Henry Zhu
608e77e389 v6.20.0 2016-12-08 18:25:39 -05:00
Henry Zhu
16a05166b2 v6.20.0 changelog [skip ci] (#4971)
* v6.20.0 changelog [skip ci]
* remove old license since rewrite [skip ci]
2016-12-08 18:17:33 -05:00
Brian Ng
db04f99124 Raise limit on code size before compacting (#4965) 2016-12-08 18:08:56 -05:00