[react-packager] Use latest babel-core in place of babel (40% perf improvement)

This commit is contained in:
Amjad Masad 2015-06-30 03:53:42 -07:00
parent 9f22f67599
commit 7d184adf1a
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*/
'use strict';
require('babel/register')({
require('babel-core/register')({
only: /react-packager\/src/
});

View File

@ -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, {