From e5926395ceeeac4c1c50ed645a47e8f16f0e2043 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Thu, 12 Feb 2015 11:37:43 -0800 Subject: [PATCH] Move reactCompat option to transform as per 6to5 deprecation warning. Bumped the version of 6to5-core to `^3.6.0` to ensure `reactCompat` is available as a transform rather than an option. --- package.json | 2 +- src/6to5.coffee | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8b56e0bb4..6eeecbb3d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ ], "atomShellVersion": "0.21.0", "dependencies": { - "6to5-core": "^3.0.14", + "6to5-core": "^3.6.0", "async": "0.2.6", "atom-keymap": "^3.1.2", "bootstrap": "git+https://github.com/atom/bootstrap.git#6af81906189f1747fd6c93479e3d998ebe041372", diff --git a/src/6to5.coffee b/src/6to5.coffee index 15059ad62..97c8a11a9 100644 --- a/src/6to5.coffee +++ b/src/6to5.coffee @@ -18,11 +18,6 @@ defaultOptions = # when the source map is inlined. sourceMap: 'inline' - # Because Atom is currently packaged with a fork of React v0.11, - # it makes sense to use the --react-compat option so the React - # JSX transformer produces pre-v0.12 code. - reactCompat: true - # Blacklisted features do not get transpiled. Features that are # natively supported in the target environment should be listed # here. Because Atom uses a bleeding edge version of Node/io.js, @@ -40,6 +35,11 @@ defaultOptions = # Target a version of the regenerator runtime that # supports yield so the transpiled code is cleaner/smaller. 'asyncToGenerator' + + # Because Atom is currently packaged with a fork of React v0.11, + # it makes sense to use the reactCompat transform so the React + # JSX transformer produces pre-v0.12 code. + 'reactCompat' ] ###