Sebastian McKenzie
12d650e195
checkSelf() for destructuring catch clauses
2015-05-04 22:22:39 +01:00
Sebastian McKenzie
8fb58492df
fix default specifiers not taking into consideration sourced imports
2015-05-04 22:20:52 +01:00
Sebastian McKenzie
2c0c2f12df
avoid trying to replace a node with itself, antipattern!
2015-05-04 22:20:52 +01:00
Sebastian McKenzie
01e5354fd9
disallow replacing a node with itself
2015-05-04 22:20:52 +01:00
Jay Phelps
340e75eb59
Added getModuleName() option as a function, allowing you to manipulate the name as needed
2015-05-04 13:30:57 -07:00
Sebastian McKenzie
e6326332b6
properly coerce input code to string - fixes #1432
2015-05-04 15:08:18 +01:00
pangratz
92dd67856e
Fix bugs in replaceWithSourceString
...
This fixes 2 bugs within `replaceWithSourceString`:
- `code` is undefined as it should be `replacement`
- the expression of the parsed replacement hasn't been accessed correctly
2015-05-04 09:33:32 +02:00
Sebastian McKenzie
a2bb587e24
remove embedded jsx plugin and use acorn-jsx
2015-05-04 04:33:46 +01:00
Sebastian McKenzie
b8b70f2f4a
rejigger around parse mechanics
2015-05-04 03:57:28 +01:00
Sebastian McKenzie
a8a3f6d34d
Merge branch 'master' of github.com:babel/babel
2015-05-04 03:55:25 +01:00
Sebastian McKenzie
9847d226e1
add transform import - closes babel/babel-eslint#83
2015-05-04 03:54:58 +01:00
Sebastian McKenzie
3d48a16305
Merge pull request #1417 from loganfsmyth/fix-phantom-issue-1405
...
Explicitly sort instead of relying on key ordering.
2015-05-04 03:29:30 +01:00
Sebastian McKenzie
3878bd812c
remove native super inheritance from classes - fixes #1424
2015-05-03 23:45:26 +01:00
Sebastian McKenzie
0717eaddce
normalise Program replacement nodes
2015-05-03 23:35:39 +01:00
Sebastian McKenzie
102cbbe493
fix up crazy parse argument order
2015-05-03 23:31:37 +01:00
Sebastian McKenzie
d981b30194
clean up file transform pipeline
2015-05-03 23:26:37 +01:00
Sebastian McKenzie
0fc02f2cf0
add support for replacing nodes with expression source strings
2015-05-03 23:02:19 +01:00
Sebastian McKenzie
f0070e4828
ignore _generated FunctionDeclarations too in es6.spec.symbols transformer
2015-05-03 17:40:30 +01:00
Sebastian McKenzie
b30bdf2294
turn inserted helper declarations into function declarations if possible
2015-05-03 17:22:51 +01:00
Logan Smyth
74aaf848ed
Explicitly sort instead of relying on implementation-defined numeric key ordering - fixes #1405 .
2015-05-01 20:00:22 -07:00
Sebastian McKenzie
95de5400e6
remove dead if statement explosion code - fixes #1413
2015-05-01 23:30:26 +01:00
Sebastian McKenzie
fe7079802b
move deadCodeElimination transformer up - fixes #1409 , fixes #1408
2015-05-01 23:24:16 +01:00
Sebastian McKenzie
61ddb14e25
Merge branch 'master' of github.com:babel/babel
2015-05-01 23:14:58 +01:00
Sebastian McKenzie
ca7a93cd64
move utility.deadCodeElimination transformer to minification
2015-05-01 23:13:48 +01:00
Sebastian McKenzie
90a1c81d30
split up es3.xLiterals transformers - fixes #1415
2015-05-01 23:13:30 +01:00
Henry Zhu
1a716943bc
remove old references to jshint
2015-05-01 14:08:47 -04:00
Sebastian McKenzie
c28415c38a
handle shorthand objects properly when renaming bindings, create new ones and refresh the stored binding identifier if necessary - fixes #1406
2015-05-01 15:23:46 +01:00
Sebastian McKenzie
a2b912bc77
add BABEL mention to deprecation message
2015-05-01 13:07:31 +01:00
Sebastian McKenzie
f1bfbe44e2
expose Pipeline as TransformerPipeline
2015-05-01 13:00:34 +01:00
Sebastian McKenzie
dbdd07d0b8
fix addAliases call
2015-05-01 13:00:26 +01:00
Sebastian McKenzie
3353de225d
fix parse API not adding all the correct pipeline transformers
2015-05-01 11:39:38 +01:00
Sebastian McKenzie
16cdb43c67
expose transform pipeline and require node api inside of the browser one to avoid race conditions
2015-05-01 11:27:23 +01:00
Sebastian McKenzie
f155bc249c
fix Program global reference catching for real this time
2015-05-01 09:41:35 +01:00
Sebastian McKenzie
452d0ef30e
fix Program global reference catching
2015-05-01 09:40:03 +01:00
Sebastian McKenzie
005754ba98
Revert "Revert "make dead code elimination smarter and eliminate non-referenced "pure" nodes""
...
This reverts commit c3c4cf17e32c5dcba2034ab08f0c5a58aa20f277.
2015-05-01 09:39:33 +01:00
Sebastian McKenzie
c3c4cf17e3
Revert "make dead code elimination smarter and eliminate non-referenced "pure" nodes"
...
This reverts commit 4e87809ff904f170009418344d11772e6dec0e1b.
2015-05-01 09:39:07 +01:00
Sebastian McKenzie
15f5e658fc
Merge branch 'master' of github.com:babel/babel
2015-05-01 09:32:28 +01:00
Sebastian McKenzie
574e6da132
add Statement and Declaration aliases to flow types - fixes #1401
2015-05-01 09:32:11 +01:00
Sebastian McKenzie
da6d27ed16
Merge pull request #1404 from timbur/master
...
hopefully fixes #1402
2015-05-01 09:31:46 +01:00
Sebastian McKenzie
4e87809ff9
make dead code elimination smarter and eliminate non-referenced "pure" nodes
2015-05-01 09:31:28 +01:00
Sebastian McKenzie
f4267aaab0
Merge pull request #1403 from wyand/master
...
fix spelling
2015-05-01 09:28:46 +01:00
Tim Burgess
502cc13aed
hopefully fixes #1402
2015-05-01 04:05:22 -04:00
Dan Wyand
0a1154e6fd
fix spelling
2015-05-01 01:01:10 -04:00
Christopher Monsanto
f5b3d72730
support commas as obj property separators in flow
2015-05-01 00:09:26 -04:00
Sebastian McKenzie
e9bcccffbd
futz the bundler idea
2015-05-01 03:26:12 +01:00
Sebastian McKenzie
aaf4cbf06f
start on babel module bundling and type inferrence
2015-05-01 02:59:59 +01:00
Sebastian McKenzie
d9169a87ad
allow util.arrayify to take arbitrary types and coerce it into an array - #1398
2015-05-01 00:41:47 +01:00
Sebastian McKenzie
f32079ef42
fix regression in node/register that caused node_modules to not be ignored - fixes #1398
2015-05-01 00:29:57 +01:00
Sebastian McKenzie
d26e7ad577
fix no RHS in class properties causing undefined to be used instead of a noop - fixes #1396
2015-04-30 23:09:17 +01:00
Sebastian McKenzie
571cb4928f
add register-without-polyfill option
2015-04-30 22:27:52 +01:00