Sebastian McKenzie
386e221a0f
don't override core supported member expressions if there's a local binding
2015-02-05 09:53:12 +11:00
Sebastian McKenzie
dc7e963c9f
style fixes
2015-02-05 08:27:59 +11:00
Sebastian McKenzie
4b2cf2e2c5
fix styling errors
2015-02-04 23:24:08 +11:00
Sebastian McKenzie
23b8c72e9a
remove unused traverse requires
2015-02-04 23:22:26 +11:00
Sebastian McKenzie
d6b39bc89b
HomeObject isn't dynamic - fixes #690
2015-02-04 18:47:58 +11:00
Sebastian McKenzie
39fe737cb6
rename es7.objectSpread transformer to es7.objectRestSpread
2015-02-04 18:35:43 +11:00
Sebastian McKenzie
37ef976515
more cleanup of the destructuring transformer
2015-02-04 18:21:10 +11:00
Sebastian McKenzie
fa5a3022d4
clean up destructuring transformer
2015-02-04 17:48:27 +11:00
Sebastian McKenzie
58bed088f5
throw an error when destructuring a null or undefined value on an empty object pattern - fixes #681
2015-02-04 17:35:24 +11:00
Sebastian McKenzie
4f023e83f8
refactor traversals that have scopes to use the scope helper method
2015-02-04 13:25:23 +11:00
Sebastian McKenzie
7d950cd60a
i made the javascripts faster with a transformer prepass to check what transformers actually have to be ran
2015-02-04 12:56:34 +11:00
Sebastian McKenzie
ffc9244f88
make #683 more inline with the official jsx compiler
2015-02-04 10:38:35 +11:00
Sebastian McKenzie
5a81d22167
Merge pull request #683 from caseywebdev/concat-string-literals
...
Concatenate adjacent string literals in JSX
2015-02-04 10:22:51 +11:00
Sebastian McKenzie
55f2cffc22
fix linting errors
2015-02-04 10:05:20 +11:00
Sebastian McKenzie
36fa174901
change instance reference to this in class super constructor call template - fixes #689
2015-02-04 10:03:15 +11:00
Sebastian McKenzie
8d81a382f7
inline back the super constructor call helper - fixes #684
2015-02-04 08:39:45 +11:00
Sebastian McKenzie
23c6e7e168
fix incorrect getThisReference bind - fixes #688
2015-02-04 08:26:18 +11:00
Sebastian McKenzie
49847e70af
add some minification transformers
2015-02-04 08:23:58 +11:00
Casey Foster
2562b0c201
Concatenate adjacent string literals in JSX
2015-02-03 10:46:54 -06:00
Sebastian McKenzie
239369314c
more scope refactoring - fixes #676
2015-02-03 20:06:27 +11:00
Sebastian McKenzie
f2d1fc47d1
Merge branch 'master' of github.com:6to5/6to5
2015-02-03 19:55:29 +11:00
Sebastian McKenzie
a9405e5e80
clean up scope API
2015-02-03 19:33:32 +11:00
Jay Phelps
9880990fa7
First pass at converting identifiers/words from en-au -> en-us
2015-02-03 00:08:43 -08:00
Jonathan
e92ec6aba7
Change getModuleName regex to only remove extenion
...
Given a names like: "some.module.js" and "some.other.module.js" the current regex in DefaultFormatter.prototype.getModuleName will overmatch and only return "some" as the module name in both cases.
Changing the . character class to \w will make sure it does not pick up additional sections and returns "some.module" and "some.other.module" for the names
2015-02-03 01:52:24 -05:00
Sebastian McKenzie
72de8f5c9b
fix class tests to reflect new call behaviour
2015-02-03 15:35:24 +11:00
Sebastian McKenzie
895d965568
fix linting errors
2015-02-03 15:17:33 +11:00
Sebastian McKenzie
3a11c7d46b
as per "ES6 February 2, 2015 Draft Rev 32" "Constructors defined using class definition syntax throw when called as functions"
2015-02-03 15:16:16 +11:00
Sebastian McKenzie
92d9b3ff5f
make it illegal to export a __esModule property - #673
2015-02-03 14:41:11 +11:00
Sebastian McKenzie
630f1717f0
clean up scope collision tracking and constants transformer - fixes #331
2015-02-03 13:20:52 +11:00
Sebastian McKenzie
e6e93840a6
check for scope collisions in constants transformer - fixes #331
2015-02-03 12:03:38 +11:00
Sebastian McKenzie
b2ad79cf88
rename t.getDeclarations to the WAY more reflective t.getBindingIdentifiers
2015-02-03 12:03:21 +11:00
Sebastian McKenzie
706797eb47
rename LetScoping to BlockScoping
2015-02-03 10:23:56 +11:00
Sebastian McKenzie
4413da8d6e
fix up whitespace on non empty last line JSX literals - fixes #668
2015-02-03 09:31:30 +11:00
Sebastian McKenzie
8e23d623c8
split up util.pushMutatorMap and util.buildDefineProperties
2015-02-03 09:30:52 +11: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
f9a26fd903
better optimisation base
2015-02-02 20:28:34 +11:00
Sebastian McKenzie
0b33a62032
fix linting errors
2015-02-02 10:48:18 +11:00
Sebastian McKenzie
fb360039ce
remap top level this to undefined - #562
2015-02-02 10:44:17 +11:00
Sebastian McKenzie
8a9aac3e68
fix linting errors
2015-02-02 01:37:27 +11:00
Sebastian McKenzie
27138abd29
simplify member expression checking, flesh out react component optimiser #653
2015-02-02 01:30:06 +11:00
Sebastian McKenzie
dcf91db475
add react component optimisation base #653
2015-02-02 00:50:25 +11:00
Sebastian McKenzie
25566a24f6
block hoist assignment pattern destructuring - fixes #652
2015-02-01 18:33:36 +11:00
Sebastian McKenzie
2cdb4e3343
fix linting errors
2015-02-01 16:21:13 +11:00
Sebastian McKenzie
981d3e40f8
add canRun check for playground transformers
2015-02-01 16:20:32 +11:00
Sebastian McKenzie
c7a616730c
add levenshtein suggestions to undeclared variable transformer
2015-02-01 16:20:18 +11:00
Sebastian McKenzie
5aa8ece242
don't run playground transformers at all if playground isn't enabled
2015-02-01 16:19:49 +11:00
Sebastian McKenzie
8c7ba20f86
fix regenerator transformer order - fixes #617
2015-02-01 16:19:35 +11:00
Sebastian McKenzie
4a720625d9
fix linting errors
2015-01-31 21:29:44 +11:00
Sebastian McKenzie
c0299320f0
avoid transforming of inner labels and propagation of maps in block scoping transformer - #644
2015-01-31 21:27:20 +11:00
Sebastian McKenzie
12bee73070
restructure internal indexes a bit
2015-01-31 18:04:57 +11:00