mirror of https://github.com/status-im/metro.git
[react-packager] Use latest babel-core in place of babel (40% perf improvement)
This commit is contained in:
parent
b3d9bf6909
commit
70dde863ae
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('babel/register')({
|
require('babel-core/register')({
|
||||||
only: /react-packager\/src/
|
only: /react-packager\/src/
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue