mirror of https://github.com/status-im/metro.git
packager: centralize babelRegisterOnly callsites
Reviewed By: davidaurelio Differential Revision: D4380987 fbshipit-source-id: db34e56b2025fb072798ef2cc3e52f3d1cb7c33c
This commit is contained in:
parent
2165eedb71
commit
8adb91f7e2
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
require('../babelRegisterOnly')([/react-packager\/src/]);
|
||||
require('../../setupBabel')();
|
||||
|
||||
const debug = require('debug');
|
||||
const Logger = require('./src/Logger');
|
||||
|
|
|
@ -9,8 +9,5 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
require('../../../../babelRegisterOnly')([
|
||||
path.resolve(path.join(__dirname, '../../**/*')),
|
||||
]);
|
||||
require('../../../../../setupBabel')();
|
||||
module.exports = require('./worker');
|
||||
|
|
Loading…
Reference in New Issue