From 4c50ced1a80be2e8a3d3d0f3f803773e5d2d4cfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 12 Jun 2015 16:45:15 -0700 Subject: [PATCH] [blog] Deprecate JSTransform & react-tools --- ...deprecating-jstransform-and-react-tools.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/_posts/2015-06-12-deprecating-jstransform-and-react-tools.md diff --git a/docs/_posts/2015-06-12-deprecating-jstransform-and-react-tools.md b/docs/_posts/2015-06-12-deprecating-jstransform-and-react-tools.md new file mode 100644 index 0000000000..c8bf0f120e --- /dev/null +++ b/docs/_posts/2015-06-12-deprecating-jstransform-and-react-tools.md @@ -0,0 +1,27 @@ +--- +title: "Deprecating JSTransform and react-tools" +author: zpao +--- + +Today we're announcing the deprecation of react-tools and JSTransform. + +As many people have noticed already, React and React Native have both switched their respective build systems to make use of [Babel](http://babeljs.io/). This replaced [JSTransform](https://github.com/facebook/jstransform), the source transformation tool that we wrote at Facebook. JSTransform has been really good for us over the past several years, however as the JavaScript language continues to evolve, the architecture we used has begun to show its age. We've faced maintenance issues and lagged behind implementing new language features. Last year, Babel (previously 6to5) exploded onto the scene, implementing new features at an amazing pace. Since then it has evolved a solid plugin API, and implemented some of our non-standard language features (JSX and Flow type annotations). + +react-tools has always been a very thin wrapper around JSTransform. It has served as a great tool for the community to get up and running, but at this point we're ready to [let it go](https://www.youtube.com/watch?v=moSFlvxnbgk). We won't ship a new version for v0.14. + +## Migrating to Babel + +Many people in the React and broader JavaScript community have already adopted Babel. It has [integrations with a number of tools](http://babeljs.io/docs/setup/). Depending on your tool, you'll want to read up on the instructions. + +We've been working with the Babel team as we started making use of it and we're confident that it will be the right tool to use with React. + +## Other Deprecations + +### esprima-fb + +As a result of no longer maintaining JSTransform, we no longer have a need to maintain our Esprima fork ([esprima-fb](https://github.com/facebook/esprima/)). The upstream Esprima and other esprima-based forks, like Espree, have been doing an excellent job of supporting new language features recently. If you have a need of an esprima-based parse, we encourage you to look into using one of those. + +### JSXTransformer +JSXTransformer is another tool we built specifically for consuming JSX in the browser. It was always intended as a quick way to prototype code before setting up a build process. It would look for `