[react-packager] Use latest babel-core in place of babel (40% perf improvement)
This commit is contained in:
parent
9f22f67599
commit
7d184adf1a
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
require('babel/register')({
|
||||
require('babel-core/register')({
|
||||
only: /react-packager\/src/
|
||||
});
|
||||
|
||||
|
|
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue