Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+metro_bundler
* @format
*/
'use strict';
const babelRegister = require('metro-babel-register');
const path = require('path');
const rootPath = path.resolve(
path.dirname(require.resolve('metro/package.json')),
'../../..',
);
babelRegister(babelRegister.buildRegExps(rootPath, ['metro/packages/']));
module.exports = require('metro/src/DeltaBundler/Worker');
function setupBabel() {
babelRegisterOnly(
babelRegisterOnly.buildRegExps(__dirname, BABEL_ENABLED_PATHS),
);
}
function setupBabel() {
babelRegisterOnly(
babelRegisterOnly.buildRegExps(__dirname, BABEL_ENABLED_PATHS),
);
}