Ingvar Stepanyan
4c318166e1
Added complete TCO (tail call optimization).
...
Works across functions and generates simpler and faster code than #701 .
Works even across files when used in conjunction with `runtime` option.
Closes #256 .
2015-02-07 22:22:38 +02:00
Sebastian McKenzie
e75ce94578
move reactCompat option onto an optional transformer
2015-02-07 15:59:00 +11:00
Sebastian McKenzie
ffc9244f88
make #683 more inline with the official jsx compiler
2015-02-04 10:38:35 +11:00
Casey Foster
2562b0c201
Concatenate adjacent string literals in JSX
2015-02-03 10:46:54 -06:00
Sebastian McKenzie
e712c5225b
use the current file basename for the displayName of export default React.createClass - 6to5/6to5-sublime#21
2015-02-02 23:48:03 +11:00
Sebastian McKenzie
47a45f3731
add additional react ThisExpression conversion test
2015-01-30 11:05:16 +11:00
Sebastian McKenzie
bf393c025f
properly transform XJSIdentifier nodes referencing this into a ThisExpression - facebook/react#2927
2015-01-30 11:00:37 +11:00
Sebastian McKenzie
e963798067
update tests to reflect _extends helper modifications
2015-01-29 22:38:07 +11:00
Sebastian McKenzie
10ede7c934
fix extends helper checking the wrong object - thanks @appden!
2015-01-27 07:38:08 +11:00
Sebastian McKenzie
2869878046
use hasOwnProperty in extends helper
2015-01-27 07:16:57 +11:00
Sebastian McKenzie
6f2925ed83
remove React.__spread and use extends helper instead - fixes #594
2015-01-27 06:43:57 +11:00
Sebastian McKenzie
da6c2b8d6a
add illegal top level this transformer - fixes #562
2015-01-22 07:44:36 +11:00
Sebastian McKenzie
62e406a6fe
fix better jsx output
2015-01-07 22:47:37 +11:00
Sebastian McKenzie
a8a7587c1f
better jsx output #369
2015-01-07 22:42:03 +11:00
Amjad Masad
eef371c3df
Add support for React pre v0.12 transform
...
This uses an option `reactCompat` to emit code that works with React pre v0.12
2015-01-06 21:49:35 -05:00
Sebastian McKenzie
560d60e3e7
fix formatting on react display name object declaration actual test
2014-12-27 17:02:00 +11:00
Sebastian McKenzie
4e333cf357
add arrayify and regexify tests, add destructuring assignment expression statement only test
2014-11-21 17:08:56 +11:00
Sebastian McKenzie
9c1b60e451
fix excessive whitespace trimming resulting in innaccurate sourcemap line - fixes #151
2014-11-13 12:25:11 +11:00
Sebastian McKenzie
27d30329fd
add more react spread tests
2014-11-12 12:18:16 +11:00
Sebastian McKenzie
9e08a6f084
combine jsx and react transformer so we can make the jsx output correct - #143
2014-11-11 19:11:30 +11:00
Sebastian McKenzie
e3d2748970
fix up react display-name test whitespace
2014-11-09 16:26:12 +11:00
Sebastian McKenzie
df70be4ebb
clean up and fix tests
2014-11-07 12:33:35 +11:00
Sebastian McKenzie
171bcad870
make transformation tests compare output instead of ast
2014-11-03 17:52:15 +11:00
Sebastian McKenzie
8136b4c40b
rename syntax tests to transformation
2014-10-25 09:09:55 +11:00