packager: centralize babelRegisterOnly callsites

Reviewed By: davidaurelio

Differential Revision: D4380987

fbshipit-source-id: db34e56b2025fb072798ef2cc3e52f3d1cb7c33c
This commit is contained in:
Jean Lauliac 2017-01-06 06:02:36 -08:00 committed by Facebook Github Bot
parent 2165eedb71
commit 8adb91f7e2
2 changed files with 2 additions and 5 deletions

View File

@ -8,7 +8,7 @@
*/
'use strict';
require('../babelRegisterOnly')([/react-packager\/src/]);
require('../../setupBabel')();
const debug = require('debug');
const Logger = require('./src/Logger');

View File

@ -9,8 +9,5 @@
'use strict';
const path = require('path');
require('../../../../babelRegisterOnly')([
path.resolve(path.join(__dirname, '../../**/*')),
]);
require('../../../../../setupBabel')();
module.exports = require('./worker');