1595 Commits

Author SHA1 Message Date
Amjad Masad
4b2a660ee0 Merge pull request #3323 from divmain/master
Source-map support for multiple input source files
2016-03-07 11:57:59 -08:00
Dale Bustad
3c6c09d00a Only detect indent if babel-generator is provided code string, vs multi-source object. 2016-03-07 02:47:28 -08:00
Dale Bustad
288b3ba559 Attach filename property to node.loc when provided. 2016-03-07 02:47:28 -08:00
Dale Bustad
f007b51554 Accept filename-to-file-content hash as code parameter of generate. 2016-03-07 02:47:28 -08:00
Dale Bustad
26dcd6400f When generating sourcemaps, use per-node source filename if present. 2016-03-07 02:47:27 -08:00
Sam Goldman
a38a58bad8 Add support for Flow def-site variance syntax
This syntax allows you to specify whether a type variable can appear in
a covariant or contravariant position, and is super useful for, say,
Promise.

Right now this is hacked in jankily, but in the next major release we
should stop using Identifier nodes for type parameters.
2016-03-06 14:44:09 -08:00
Henry Zhu
5eb13059e2 Merge pull request #3383 from babel/T7160
Regression with exporting an arrow function with a default param
2016-03-06 15:40:27 -05:00
Henry Zhu
57ef6a2b6a v6.6.5 2016-03-04 18:16:17 -05:00
Henry Zhu
d915508877 remove misc alias files 2016-03-04 17:58:49 -05:00
Henry Zhu
3689cae8e5 Merge pull request #3399 from babel/flow-comments
use flow instead of flow-comments
2016-03-04 16:24:28 -05:00
Henry Zhu
937b8a6767 use flow instead of flow-comments 2016-03-04 15:50:05 -05:00
Amjad Masad
2f5a17fd90 fix eslint 2016-03-03 15:22:16 -08:00
Amjad Masad
2fbe28cc88 Remove remaining @flow annotations 2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4 Revert "Remove Flow annotations and pragmas"
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Amjad Masad
3667527d04 Revert "Remove flow"
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Chris Cowan
cbae3c0e1d Fix T7183. 2016-03-03 12:15:11 -08:00
Chris Cowan
d864cde3c8 Add failing tests for T7183. 2016-03-03 12:12:14 -08:00
Logan Smyth
6ccd74a94e Merge pull request #3395 from loganfsmyth/object-rest-binding
Recognize object rest properties as binding identifiers - fixes T7178
2016-03-03 09:44:51 -08:00
Logan Smyth
305252d335 Recognize object rest properties as binding identifiers - fixes T7178 2016-03-03 08:58:22 -08:00
Amjad Masad
47782a6170 Merge pull request #3389 from babel/block-binding-actual
Update scope binding info after transforming block-scoped bindings
2016-03-02 18:51:26 -08:00
Amjad Masad
3744aefb4f Merge pull request #3391 from benjamn/fix-buildExportAll
Make buildExportAll generate pure ES5 code.
2016-03-02 18:50:47 -08:00
Henry Zhu
39a8f5b796 v6.6.4 2016-03-02 16:29:17 -05:00
Henry Zhu
bca622abbc Merge pull request #3388 from AgentME/dupgetters
Partial T7173 Fix: Prevent accessors being seen as duplicates of each other
2016-03-02 16:22:57 -05:00
Henry Zhu
414efef7e3 Regression with exporting an arrow function with a default param 2016-03-02 09:49:43 -05:00
Sam Goldman
2827ff6b01 Remove flow 2016-03-01 22:33:30 -08:00
Ben Newman
9acd33b93a Make buildExportAll generate pure ES5 code.
The untransformed `let` keyword causes problems for older parsers. I
understand using `let` instead of `var` ensures each getter function has
its own binding for the KEY variable, but the same can be accomplished
(with less code) using a `.forEach` callback function, and this way
there's no need to worry about generating a unique name for the `key`
variable.
2016-03-02 00:08:55 -05:00
Amjad Masad
f4197cc77b Merge pull request #3350 from skevy/fix-babelrc-plugin-resolution
Make Babel actually resolve plugins relative to where they were specified (via .babelrc).
2016-03-01 17:19:40 -08:00
Chris Cowan
63af3d1366 Fix issue where we didn't record seeing a property sometimes. 2016-03-01 17:13:20 -08:00
Amjad Masad
30bb38c4bb Update scope binding info after transforming block-scoped bindings
When convert a const, let or any other block-bound binding to a var we
forget to update the scope info. This confuses other transforms that may
come after this as to which scope does the binding belongs to.

This also uncovered an issue where duplicate block-scoped bindings were allowed
to co-exist.
2016-03-01 17:03:06 -08:00
Chris Cowan
3227279d95 Fix accessors being seen as duplicates of each other
If an object has a getter and setter of the same name, then they
shouldn't be treated as duplicate properties.
2016-03-01 16:30:48 -08:00
Henry Zhu
86284963f3 v6.6.3 2016-03-01 11:40:48 -05:00
Logan Smyth
f2fea017c6 Ensure that the found context is active before pushing it. 2016-03-01 08:14:14 -08:00
Henry Zhu
b1477a3e8c v6.6.2 2016-03-01 09:08:35 -05:00
Henry Zhu
01f5b93978 Merge pull request #3386 from loganfsmyth/revert-requeue-change
Revert .requeue changes made in earlier ES3 fixes.
2016-03-01 08:54:19 -05:00
Logan Smyth
4561732bce Revert .requeue changes made in earlier ES3 fixes. 2016-02-29 23:55:47 -08:00
Henry Zhu
68cdb2133d v6.6.1 2016-02-29 19:27:09 -05:00
Henry Zhu
188dbcb61c Update polyfill/runtime README 2016-02-29 19:24:07 -05:00
Henry Zhu
f34e6518ff v6.6.0 2016-02-29 16:12:12 -05:00
Henry Zhu
7dad6ab4ed Merge pull request #3377 from babel/babel-5-opts-error
Give specific error messages for babel 5 options that were removed in…
2016-02-29 15:17:43 -05:00
Henry Zhu
0916e2d189 Give specific error messages for babel 5 options that were removed in babel 6 2016-02-29 14:34:46 -05:00
Henry Zhu
1271d2cd52 Merge pull request #3380 from babel/unary-arrow
Fix: Add parens for unary arrow function
2016-02-29 12:18:12 -05:00
Henry Zhu
66ea5342de Merge pull request #3379 from babel/memexp-numliteral
Fix: invalid codegen for non decimal numeric literals in MemberExpression
2016-02-29 11:40:30 -05:00
Henry Zhu
3e4668dc14 Merge pull request #3366 from clayreimann/umd-plugin-add-global-name-override
[UMD] Fixed T6832
2016-02-29 09:45:10 -05:00
Clay Reimann
92946ccac3 [UMD] Fixed T6832 2016-02-29 08:23:35 -06:00
Henry Zhu
ec3c183668 Fix: Add parens for unary arrow function
Fixes T7157
2016-02-28 21:56:22 -05:00
Henry Zhu
35ed18f628 Fix invalid codegen for non decimal numeric literals in MemberExpression
Fixes T7156
2016-02-28 20:34:45 -05:00
Sam Goldman
5167d001c5 Remove @noflow as well 2016-02-28 13:25:36 -10:00
Sam Goldman
cd1af74ecc Remove weird codemod artifact 2016-02-28 13:23:28 -10:00
Sam Goldman
4252244d06 Remove Flow annotations and pragmas 2016-02-28 13:18:57 -10:00
Chris Cowan
b2aecd4320 Fix arrow style issue 2016-02-26 08:57:34 -08:00