diff --git a/react-packager/index.js b/react-packager/index.js index d4ea0dd391..c47d762a12 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 a2efcea3bb..c5b235da85 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, {