Andrew Bradley
9c27f1e86a
Fixes the wrong source path being passed to SourceMapConsumer#generatedPositionFor
...
`generatedPositionFor` accepts a position in one of the sourcemap's *input* source files. Therefore the `source` path
should be one of the sourcemap's input `sources`, not the output `file`.
2015-11-24 16:10:10 -05:00
Andrew Bradley
bbec2114ce
Fixes T2864
...
- Drops input mappings that cannot be mapped through Babel's sourcemap
- For example, Babel's sourcemap does not have mappings for leading comments, so any mapping from an input sourcemap for those leading comments must be dropped from the merged sourcemap
2015-11-24 16:07:37 -05:00
TSUYUSATO Kitsune
922c621ffb
Fixed T6675
...
https://phabricator.babeljs.io/T6675 .
2015-11-24 22:39:50 +09:00
hon2a
af4271a262
babel-template no longer crashes in IE attempting to access unpopulated error stack.
2015-11-24 13:54:49 +01:00
Amjad Masad
44d5552840
Fix up semicolon omission in compact mode
2015-11-23 21:32:44 -08:00
Aliaksei Shytkin
47871f80dd
Make arrow functions to work with multiple args and flow return type (fixes T2422)
2015-11-23 15:20:16 +03:00
Henry Zhu
f56af90c20
add numericliteral
2015-11-21 22:50:21 -05:00
Henry Zhu
3a05513e31
literal to stringLiteral - fixes T6667
2015-11-21 22:25:21 -05:00
Henry Zhu
efa9a1abf2
add more validation for jsx nodes
2015-11-21 21:13:09 -05:00
Sebastian McKenzie
3c5bced67d
v6.2.2
2015-11-19 14:45:57 -08:00
Sebastian McKenzie
ba0388eba5
Merge pull request #3096 from loganfsmyth/double-class-traverse
...
Avoid duplicating traversal of class declarations - fixes T2694
2015-11-19 14:37:21 -08:00
Sebastian McKenzie
a4e3af1c63
v6.2.1
2015-11-19 14:03:33 -08:00
Sebastian McKenzie
45d4e50b39
add resolution dirname to unknown plugin/preset error message
2015-11-19 14:01:38 -08:00
Victor Felder
9a97d92217
T2965: Patterns as rest parameter operands are not valid, therefore this relic should go
2015-11-19 13:50:12 +01:00
Victor Felder
a510e7325b
Factor out optimiseCandidate to reduce nesting & complexity
2015-11-19 13:47:07 +01:00
Victor Felder
306b5db1ef
Have es2015 rest transform safely use arguments
2015-11-19 12:47:55 +01:00
Logan Smyth
b3f2ea0aa1
Avoid duplicating traversal of class declarations - fixes T2694
2015-11-19 00:30:56 -08:00
Sebastian McKenzie
ac90ea20ea
v6.2.0
2015-11-18 20:33:47 -08:00
Sebastian McKenzie
94887d35e1
add babel-plugin-syntax-function-sent plugin
2015-11-18 20:32:11 -08:00
Sebastian McKenzie
8fd543edae
make base option plugin/preset resolving happen relative to the input filename
2015-11-18 20:31:59 -08:00
Sebastian McKenzie
89d9db8648
bump invariant dependency version
2015-11-17 23:02:29 -08:00
Sebastian McKenzie
983ca5c71f
add function.sent
2015-11-17 23:02:21 -08:00
Sebastian McKenzie
f8c2beb9d8
Merge pull request #3088 from kpdecker/terminal-after-comment
...
Output auxiliaryCommentAfter before trail comment
2015-11-17 23:01:32 -08:00
Sebastian McKenzie
02c155e32a
Merge pull request #3087 from nordluf/master
...
Make babel-cli watching only given files and extensions.
2015-11-17 23:00:35 -08:00
Sebastian McKenzie
eb4841932f
Merge branch 'master' of github.com:babel/babel
2015-11-17 22:59:23 -08:00
Sebastian McKenzie
ba68bd255e
add package.json dirname to mergeOptions - closes #3093
2015-11-17 22:58:24 -08:00
Sebastian McKenzie
9249f7715c
Merge pull request #3091 from claudiopro/master
...
Fixes @jsx pragma detection + tests
2015-11-17 22:55:14 -08:00
Amjad Masad
1612c70c10
Take the alternate existence into account
2015-11-17 19:16:19 -08:00
Amjad Masad
35e575cf93
Print a block when encountering consequents that are if statements
2015-11-17 19:07:20 -08:00
Amjad Masad
507557c48e
Add failing test
2015-11-17 18:45:35 -08:00
claudiopro
6d1a6dfc94
Fixes @jsx pragma detection + tests
2015-11-17 22:32:44 +01:00
kpdecker
1286200712
Output auxiliaryCommentAfter before trail comment
...
Quick fix for the case where generated comment is the terminal leaf in a subtree that is followed by a trailing comment.
Partial for #3034
2015-11-16 20:59:24 -06:00
Evgeny Kruglov
a43a60e5b8
Make babel-cli watching only given files and extensions. Use --only, --ignore and --extensions while process filenames with --out-file option.
2015-11-16 23:43:14 +03:00
Daniel Lo Nigro
0076204f80
Fix Flow.
...
Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.
Closes #3064
2015-11-15 21:30:22 -08:00
Sebastian McKenzie
1d34d19ce9
Merge pull request #3050 from kpdecker/aux-chain
...
auxiliaryComment chaining
2015-11-15 20:13:47 -08:00
Sebastian McKenzie
f6dea87102
Merge pull request #3066 from zertosh/cleanup-deps
...
Remove (a few) unused deps
2015-11-15 20:12:52 -08:00
Joshua Searles
750fca9a88
Add module operator
2015-11-15 02:44:43 -05:00
Andres Suarez
c8f3fd8a34
Remove unused deps
2015-11-14 16:04:48 -08:00
James Kyle
c4c9c6f123
Fix transform-es2015-block-scoping link
2015-11-13 20:15:52 -08:00
Sebastian McKenzie
11e50695d3
v6.1.21
2015-11-13 16:57:03 -08:00
Sebastian McKenzie
31f3eac566
Merge branch 'master' of github.com:babel/babel
2015-11-13 16:56:04 -08:00
Sebastian McKenzie
01356191d4
avoid revisiting classes - #2694
2015-11-13 16:55:54 -08:00
Sebastian McKenzie
5cb326a7f6
add aliases to plugins that are where they were first specified for performance
2015-11-13 16:54:47 -08:00
kpdecker
488f5a067e
Avoid duplicate auxiliary start if in aux section
...
Fixes #3032
2015-11-13 13:43:23 -06:00
kpdecker
1563e74cc0
Add a few auxiliary comment tests
2015-11-13 12:56:30 -06:00
Jesse McCarthy
f660dd3430
Correct option name: features => plugins.
2015-11-13 10:25:40 -05:00
Sebastian McKenzie
5b6a39f227
v6.1.20
2015-11-13 03:38:54 -08:00
Sebastian McKenzie
9f6dcdbc29
add regression test - fixes #3028
2015-11-13 03:37:43 -08:00
Sebastian McKenzie
9d8db74517
only infer whitespace when we've been passed tokens
2015-11-13 03:37:27 -08:00
Sebastian McKenzie
688dcec6a3
fix queueing of nested paths being pushed onto the priority queue
2015-11-13 03:37:15 -08:00