Sebastian McKenzie
a22cd72440
update to RestElement - @RReverser
2015-01-23 23:20:45 +11:00
Sebastian McKenzie
9f435d02f2
switch to a custom list of global keys and use object helper
2015-01-23 23:04:33 +11:00
Sebastian McKenzie
5f8f9e35d7
better categorisation of transformers
2015-01-23 23:03:41 +11:00
Sebastian McKenzie
063fec0ca6
better categorisation of transformers
2015-01-23 23:02:40 +11:00
Sebastian McKenzie
36fa887be8
update XJS namespaces to JSX
2015-01-23 08:08:56 +11:00
Sebastian McKenzie
8f68f62f8a
add jscs
2015-01-22 19:23:56 +11:00
Sebastian McKenzie
8678917e2a
add util.object that we'll use to construct objects to avoid prototype collisions
2015-01-22 18:39:31 +11:00
Sebastian McKenzie
2e0a185db6
keep function id location in block scoped function transformer
2015-01-22 17:20:19 +11:00
Sebastian McKenzie
f63ce4ddd4
rename _letDeclars to _letDeclarators in es6 block scoping transformer
2015-01-22 17:20:05 +11:00
Sebastian McKenzie
b9b1a44c28
support async await inside of let scoping closure wrapper - fixes #565
2015-01-22 10:53:05 +11:00
Sebastian McKenzie
5463872926
optional async transformers should remove their ids - fixes #552
2015-01-22 08:15:35 +11:00
Sebastian McKenzie
da6c2b8d6a
add illegal top level this transformer - fixes #562
2015-01-22 07:44:36 +11:00
Sebastian McKenzie
870954c6be
rewrite constants transformer
2015-01-22 07:37:18 +11:00
Sebastian McKenzie
9cdbb99eb9
fix linting errors
2015-01-22 01:47:13 +11:00
Sebastian McKenzie
48cebd5e30
rename es6.generators to regenerator
2015-01-22 01:47:07 +11:00
Sebastian McKenzie
cfd95a1398
only require imports that are necessary in selfContained
2015-01-22 01:37:28 +11:00
Sebastian McKenzie
ccdb480d44
rename traverser to visitor
2015-01-22 00:28:20 +11:00
Sebastian McKenzie
287bfc77b2
add scope file.generateUidIdentifier alias
2015-01-21 23:58:43 +11:00
Sebastian McKenzie
3205c78f01
ensure that a scope is always passed to traverse and allow scopes to have access to file
2015-01-21 23:52:12 +11:00
Sebastian McKenzie
5fcfff23a4
Merge branch 'traversers-3.0.0' of https://github.com/gaearon/6to5 into gaearon-traversers-3.0.0
2015-01-21 23:13:43 +11:00
Sebastian McKenzie
28fe45bd1d
namespace all transformer keys with their type
2015-01-21 23:12:57 +11:00
Sebastian McKenzie
f312026c23
move transformers into their corresponding type folder
2015-01-21 23:04:31 +11:00
Sebastian McKenzie
0d0d89fd9c
better names for property transformers
2015-01-21 22:41:55 +11:00
Sebastian McKenzie
019f2ee932
namespace default/rest parameter transformers
2015-01-21 22:40:50 +11:00
Sebastian McKenzie
8558505b65
merge comprehension transformers
2015-01-21 22:40:26 +11:00
Sebastian McKenzie
c51f8c48b6
rename let scoping transformer to block scoping
2015-01-21 22:40:17 +11:00
Dan Abramov
3d9d842a0d
Extract traversers outside methods
2015-01-21 14:34:47 +03:00
Sebastian McKenzie
cfd028288f
Merge branch 'master' into 3.0.0
...
Conflicts:
CHANGELOG.md
lib/6to5/transformation/transform.js
2015-01-21 17:56:34 +11:00
Sebastian McKenzie
df65ec08a2
support destructuring patterns in rest parameters - fixes #550
2015-01-21 13:35:24 +11:00
Sebastian McKenzie
3c06e68cae
fix default parameter node variable name
2015-01-21 10:21:27 +11:00
Sebastian McKenzie
3c258c4716
add proper ordering to function param logic - fixes #549
2015-01-21 10:17:52 +11:00
Sebastian McKenzie
4b525daf72
fix forOf scope declarations not propagating to new for loop - fixes #538
2015-01-20 19:33:05 +11:00
Sebastian McKenzie
031bda61cc
don't continue let scoping remapping if there are none to be remapped
2015-01-20 16:48:07 +11:00
Sebastian McKenzie
faba02afd4
better block scoped functions
2015-01-20 02:30:41 +11:00
Sebastian McKenzie
5436e95c9a
switch to regenerator-to5
2015-01-20 02:30:34 +11:00
Sebastian McKenzie
7f6eb3dba3
update selfContained transformer to use new File data layer
2015-01-20 01:42:43 +11:00
Sebastian McKenzie
9f41d6231e
Merge branch 'scoped-es6-runtime' of https://github.com/AluisioASG/6to5 into AluisioASG-scoped-es6-runtime
2015-01-20 01:34:43 +11:00
Aluísio Augusto Silva Gonçalves
9d2e12dfa6
Amendments from 6to5/6to5#535 comments
2015-01-19 12:31:47 -02:00
Aluísio Augusto Silva Gonçalves
3f96cf3963
Rename 6to5-runtime's helpers module to 'helpers'
2015-01-19 12:24:45 -02:00
Sebastian McKenzie
f322252c36
add optional undeclared variable check transformer
2015-01-20 00:17:22 +11:00
Sebastian McKenzie
da16bf1e42
add t.isReferencedIdentifier
2015-01-20 00:17:11 +11:00
Aluísio Augusto Silva Gonçalves
c81cc5cda0
Unify coreAliasing, externalRuntime and externalRegenerator
...
Merge all three transformers into the `selfContained` transformer,
as discussed in Gitter. Name may not be final.
2015-01-18 21:15:30 -02:00
Aluísio Augusto Silva Gonçalves
8d288c01ca
Import ES6 functions and helpers from 6to5-runtime
...
The new `6to5-runtime` packs core-js, 6to5's helpers and
the Regenerator runtime, and we're moving `coreAliasing`,
`externalRuntime` and `externalRegenerator` to use it
instead of forcing the user to depend on these packages
directly.
2015-01-18 20:39:35 -02:00
Aluísio Augusto Silva Gonçalves
e2f4ca106e
Merge branch 'external-regenerator-runtime' into scoped-es6-runtime
2015-01-18 20:02:48 -02:00
Sebastian McKenzie
b719eaf6ab
add missing semicolon
2015-01-19 08:58:11 +11:00
Sebastian McKenzie
16b7ff972c
split up tdz into an optional transformer until it has a better implementation - fixes #527
2015-01-19 08:54:04 +11:00
Aluísio Augusto Silva Gonçalves
d4cc8fefd1
Add transformer to import regeneratorRuntime from a module
...
Thanks to facebook/regenerator#167 Regenerator's runtime can be now
required as a module (though not in an easily self-containable way).
This transformer, together with `coreAliasing` and `externalRuntime`,
allows users to ditch a runtime dependency on `6to5`/`6to5-core` to
depend directly on `core-js` and `regenerator`.
2015-01-18 17:33:56 -02:00
Aluísio Augusto Silva Gonçalves
e985d8b25d
Don't use interopRequire for dynamic imports
...
They don't need it at all and this also allows use of `externalRuntime`
without fear of the runtime ending up being loaded after it's used.
2015-01-18 17:31:55 -02:00
Aluísio Augusto Silva Gonçalves
e8237910e8
Add a transformer to import the runtime from a file
...
The `externalRuntime` optional transformer can be used in conjunction
with the `runtime` option to import and use the runtime from a module
instead of polluting the global environment.
2015-01-18 17:31:52 -02:00
Sebastian McKenzie
4844882f5e
break let scoping transformer if there are no block scoped references
2015-01-18 21:37:37 +11:00