Sebastian McKenzie
89ecd46b77
move _moduleFormatter transformer before useStrict transformer and remove duplicate use strict removing - fixes #114
2014-11-03 12:20:47 +11:00
amsul
ddbb522392
Updated blacklist option to replace reference
2014-11-01 19:36:10 -04:00
amsul
288cfd1f00
Added ability to register 6to5 with a blacklist
...
Currently, to achieve this, I have to use this workaround:
```js
var to5 = require('6to5')
delete to5.transform.transformers.generators
require('6to5/register')
```
After this simple change, I can make it much nicer:
```js
require('6to5/register')({
blacklist: ['generators']
})
```
Cheers!
2014-11-01 14:15:52 -04:00
Sebastian McKenzie
33f8988313
support for numeric literals with recast - fixes #117
2014-11-01 16:06:46 +11:00
Sebastian McKenzie
251e4d01c8
join together declarations in destructuring to return a single node if possible - fixes #113
2014-10-31 21:38:22 +11:00
Sebastian McKenzie
6696d5fcf4
fix rest parameters in arrow functions containing wrong arguments reference - fixes #11
2014-10-31 11:42:09 +11:00
Brian Donovan
8cbb121e3f
Fix typo.
2014-10-27 20:28:08 -07:00
Sebastian McKenzie
2cffad61fa
more reliable destructuring building
2014-10-28 13:16:31 +11:00
Sebastian McKenzie
21ed438fd8
alias functions in scope call wrapping - fixes #99
2014-10-28 10:58:20 +11:00
Sebastian McKenzie
a03fd0f43a
fix formatting
2014-10-28 10:52:48 +11:00
Sebastian McKenzie
dcc5eaa95e
support MemberExpressions in destructuring - fixes #100
2014-10-28 10:52:24 +11:00
Sebastian McKenzie
3b7ce5aaa1
add browser file so we can have a custom browser environment
2014-10-28 10:52:07 +11:00
Sebastian McKenzie
9abda34e59
simplify transform call chain
2014-10-25 17:23:27 +11:00
Sebastian McKenzie
e23f8e92ba
remove internal transformer check from ensureTransformerNames #94
2014-10-25 17:23:03 +11:00
Sebastian McKenzie
a7d860aab4
fix error stack not getting updated
2014-10-25 13:03:44 +11:00
Sebastian McKenzie
d5c2647701
add ability to blacklist internal transformers #94
2014-10-25 10:20:11 +11:00
Sebastian McKenzie
65ba4d35e7
fix jshint errors
2014-10-25 09:09:31 +11:00
jupl
1b0e42ad03
Load regenerator runtime only for polyfill
2014-10-24 13:02:06 -05:00
Sebastian McKenzie
5f8420f23e
move from ast-types and recast to acorn-ast-types and acorn-recast
2014-10-23 09:00:27 +11:00
Sebastian McKenzie
ce4220644d
abstract subclassing into declaration #88
2014-10-23 08:59:52 +11:00
Sebastian McKenzie
1e6b8d80bb
push to arguments instead of an array literal for jsx children
2014-10-22 21:44:08 +11:00
Sebastian McKenzie
035829e726
add custom module formatters
2014-10-22 21:43:43 +11:00
Sebastian McKenzie
2b70df4141
add util.resolve
2014-10-22 21:43:35 +11:00
Sebastian McKenzie
3467d509f7
save old extension handlers so we can put them back if the extensions are hooked again
2014-10-22 07:22:36 +11:00
Sebastian McKenzie
dba935c63d
dry up amd and common module formatter export specifiers
2014-10-22 07:21:56 +11:00
Sebastian McKenzie
73f65ae634
fix jshint spacing issues
2014-10-20 08:35:02 +11:00
Sebastian McKenzie
e263757509
simplify amd module formatter
2014-10-20 01:40:23 +11:00
Sebastian McKenzie
b8a80364df
Revert "remove jsx and react transformers"
...
This reverts commit 4241227dbe683a529745ee6eb1107d0e25b3e555.
2014-10-19 19:46:18 +11:00
Sebastian McKenzie
ddefc09510
fix linting errors
2014-10-19 19:23:13 +11:00
Sebastian McKenzie
45bab5709f
change require("recast").types to require("ast-types")
2014-10-19 17:52:41 +11:00
Sebastian McKenzie
44966849f9
remove useless root variable in umd module formatter
2014-10-19 17:48:59 +11:00
Sebastian McKenzie
e76462303e
add umd module formatter - closes #82
2014-10-19 17:39:41 +11:00
Sebastian McKenzie
fceff4b52f
add amd module formatter #82
2014-10-19 17:05:24 +11:00
Sebastian McKenzie
209093a3f0
move ImportbatchSpecifier definition to modules transformer
2014-10-19 15:23:37 +11:00
Sebastian McKenzie
7013e970d8
fix acorn to esprima module ast/syntax changes
2014-10-19 14:58:14 +11:00
Sebastian McKenzie
42a7973a9d
add support for spreads anywhere in list - fixes #73
2014-10-19 14:52:37 +11:00
Sebastian McKenzie
a75248d2d2
remove jsx from valid extensions since we're now using acorn
2014-10-19 14:21:27 +11:00
Sebastian McKenzie
1f274a3b95
monkeypatch in acorn instead of esprima - immediately fixes #38 , fixes #67 @thejameskyle
2014-10-19 13:21:56 +11:00
Sebastian McKenzie
4241227dbe
remove jsx and react transformers
2014-10-19 13:17:02 +11:00
Sebastian McKenzie
a1adca6b65
add support for custom module formatters - #82
2014-10-19 12:11:12 +11:00
James Kyle
9c784436f0
Fix for spread on computed context
2014-10-18 17:07:23 -07:00
Sebastian McKenzie
cc84b5e1a4
make use-strict a public transformer
2014-10-18 15:47:03 +11:00
Sebastian McKenzie
435cd98480
add file argument to transformer.ast and fix ast transformer resolution bug
2014-10-18 15:45:39 +11:00
Sebastian McKenzie
d3b088cc6d
move declaration insertion to a hidden transformer, add tabWidth to recast prettyPrint
2014-10-18 15:45:22 +11:00
Sebastian McKenzie
234d9997c8
add "use strict" declaration - closes #78
2014-10-18 15:44:44 +11:00
Sebastian McKenzie
6c48e6cd66
add createClass displayName to react
2014-10-17 22:00:14 +11:00
Sebastian McKenzie
f06901ac05
add jsx and react transformer
2014-10-17 21:28:01 +11:00
Sebastian McKenzie
531ea91a07
add support for exit traversal functions to replace the node
2014-10-17 21:20:08 +11:00
Sebastian McKenzie
0188556b36
forbid function declarations that reference block scoped variables
2014-10-17 21:19:51 +11:00
Sebastian McKenzie
aeac003dc8
add util.ensureExpressionType which will change a node from a declaration to an expression
2014-10-17 11:48:25 +11:00