From 70dde863ae6cba3138b02b0173f0805c5353e246 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Tue, 30 Jun 2015 03:53:42 -0700 Subject: [PATCH] [react-packager] Use latest babel-core in place of babel (40% perf improvement) --- react-packager/index.js | 2 +- transformer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-packager/index.js b/react-packager/index.js index d4ea0dd3..c47d762a 100644 --- a/react-packager/index.js +++ b/react-packager/index.js @@ -8,7 +8,7 @@ */ 'use strict'; -require('babel/register')({ +require('babel-core/register')({ only: /react-packager\/src/ }); diff --git a/transformer.js b/transformer.js index a2efcea3..c5b235da 100644 --- a/transformer.js +++ b/transformer.js @@ -10,7 +10,7 @@ */ 'use strict'; -var babel = require('babel'); +var babel = require('babel-core'); function transform(srcTxt, filename, options) { var result = babel.transform(srcTxt, {