mirror of https://github.com/status-im/metro.git
Remove babelRegisterOnly call in workers
Reviewed By: jeanlauliac Differential Revision: D5208950 fbshipit-source-id: 093c1a67ed830480b42f556ee2d6be4ecfce9f0d
This commit is contained in:
parent
c1ff8b5b81
commit
150aa19fcb
|
@ -12,7 +12,6 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
const babelRegisterOnly = require('../../babelRegisterOnly');
|
||||
const constantFolding = require('./constant-folding');
|
||||
const extractDependencies = require('./extract-dependencies');
|
||||
const inline = require('./inline');
|
||||
|
@ -166,7 +165,6 @@ exports.transformAndExtractDependencies = (
|
|||
options: Options,
|
||||
callback: Callback<Data>,
|
||||
) => {
|
||||
babelRegisterOnly([transform]);
|
||||
/* $FlowFixMe: impossible to type a dynamic require */
|
||||
const transformModule: Transformer<*> = require(transform);
|
||||
transformCode(
|
||||
|
|
Loading…
Reference in New Issue