[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 b3d9bf6909
commit 70dde863ae
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -10,7 +10,7 @@
*/ */
'use strict'; 'use strict';
var babel = require('babel'); var babel = require('babel-core');
function transform(srcTxt, filename, options) { function transform(srcTxt, filename, options) {
var result = babel.transform(srcTxt, { var result = babel.transform(srcTxt, {