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
Logan Smyth
f2fea017c6
Ensure that the found context is active before pushing it.
2016-03-01 08:14:14 -08:00
Logan Smyth
0a0407be41
Re-queue remapped imports so they are re-traversed - fixes T6863
2016-02-22 22:54:28 -08:00
59naga
c509847588
Fix T6953,T2541 export-from statement renamed default issue
...
- Use `interopRequireDefault` helper if local name is default.
Via 59naga/babel-plugin-add-module-exports#20
2016-01-20 02:54:54 +09:00
Sebastian McKenzie
f1ef0ff5e9
Merge pull request #3118 from benjamn/import-hoisting
...
Add test of import hoisting that fails when the runtime transform is used.
2016-01-19 02:20:17 +00:00
Sebastian McKenzie
65a4c8f4a4
Merge branch 'source-map-reenter' of https://github.com/kpdecker/babel into kpdecker-source-map-reenter
...
Conflicts:
packages/babel-generator/src/printer.js
2016-01-18 18:36:57 +00:00
Ben Newman
4ca25ac7a9
Add test of import hoisting that fails with the runtime transform.
2016-01-12 18:01:31 -05:00
Amjad Masad
0d8e5a9e86
Fix over-parenthesizing of function expressions
2015-12-24 14:55:51 -08:00
Sebastian McKenzie
1fa24b1efd
rename babel-plugin-external-helpers-2 to babel-plugin-external-helpers
2015-12-24 03:54:40 +00:00
kpdecker
9e382b1686
Fix aux comment termination in lists and calls
2015-12-18 01:37:26 -06:00
kpdecker
3791491b79
Strip location information from import remaps
...
Fixes https://phabricator.babeljs.io/T6851
2015-12-18 01:36:24 -06:00
Logan Smyth
f37acd293c
Set the proper parents for new node paths - fixes T2763
2015-12-05 16:16:02 -08: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
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
Sebastian McKenzie
15969a0904
move all plugin tests out of babel-core and into their appropriate folders
2015-11-08 23:04:10 -08:00