From e4f0b845655beb11bbb825863685f538941a178f Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 9 Oct 2014 08:02:51 +1100 Subject: [PATCH] add comparison with jstransform - closes #13 --- README.md | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 818d6e1ac8..35316101e3 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,8 @@ to5.transformFile("filename.js", options, function (err, result) { whitelist: [], // If truthy, adds a `map` property to returned output. - // If set to "inline", a comment with a sourceMappingURL directive is added to the bottom of the returned code + // If set to "inline", a comment with a sourceMappingURL directive is added to + // the bottom of the returned code. sourceMap: false, // Filename for use in errors etc. @@ -192,28 +193,28 @@ limitations in ES5 implementations. ## Comparison to other transpilers -| | 6to5 | Traceur | esnext | es6now | es6-transpiler | -| ---------------------------- | ---- | ------- | ------ | ------ | -------------- | -| No runtime | ✓ | | | | ✓ | -| Source maps | ✓ | ✓ | ✓ | | ✓ | -| No compiler global pollution | ✓ | | ✓ | | ✓ | -| Array comprehension | ✓ | ✓ | ✓ | | ✓ | -| Arrow functions | ✓ | ✓ | ✓ | ✓ | ✓ | -| Block binding | ✓ | ✓ | | | ✓ | -| Classes | ✓ | ✓ | ✓ | ✓ | ✓ | -| Computed property names | ✓ | ✓ | ✓ | ✓ | ✓ | -| Constants | ✓ | ✓ | | | ✓ | -| Default parameters | ✓ | ✓ | ✓ | ✓ | ✓ | -| Destructuring | ✓ | ✓ | ✓ | ✓ | ✓ | -| For-of | ✓ | ✓ | ✓ | ✓ | ✓ | -| Generator comprehension | | ✓ | ✓ | | ✓ | -| Generators | | ✓ | ✓ | | | -| Modules | ✓ | ✓ | | ✓ | | -| Property method assignment | ✓ | ✓ | ✓ | ✓ | ✓ | -| Property name shorthand | ✓ | ✓ | ✓ | ✓ | ✓ | -| Rest parameters | ✓ | ✓ | ✓ | ✓ | ✓ | -| Spread | ✓ | ✓ | ✓ | ✓ | ✓ | -| Template literals | ✓ | ✓ | ✓ | ✓ | ✓ | +| | 6to5 | Traceur | esnext | es6now | es6-transpiler | jstransform | +| ---------------------------- | ---- | ------- | ------ | ------ | -------------- | ----------- | +| No runtime | ✓ | | | | ✓ | ✓ | +| Source maps | ✓ | ✓ | ✓ | | ✓ | ✓ | +| No compiler global pollution | ✓ | | ✓ | | ✓ | ✓ | +| Array comprehension | ✓ | ✓ | ✓ | | ✓ | | +| Arrow functions | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Block binding | ✓ | ✓ | | | ✓ | | +| Classes | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Computed property names | ✓ | ✓ | ✓ | ✓ | ✓ | | +| Constants | ✓ | ✓ | | | ✓ | | +| Default parameters | ✓ | ✓ | ✓ | ✓ | ✓ | | +| Destructuring | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| For-of | ✓ | ✓ | ✓ | ✓ | ✓ | | +| Generator comprehension | | ✓ | ✓ | | ✓ | | +| Generators | | ✓ | ✓ | | | | +| Modules | ✓ | ✓ | | ✓ | | | +| Property method assignment | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Property name shorthand | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Rest parameters | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Spread | ✓ | ✓ | ✓ | ✓ | ✓ | | +| Template literals | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | #### Performance