Move worker protocol and babelRegisterOnly into their own packages
Summary: Moves the implementation of Buck’s worker protocol into its own package and babelRegisterOnly for better reusability. Reviewed By: rafeca Differential Revision: D7666896 fbshipit-source-id: ae297494ced3b8dd1f9d90983a640643d6ce7896
This commit is contained in:
parent
5c8596dabe
commit
2690ba5e59
|
@ -15,7 +15,7 @@ const {transformSync: babelTransformSync} = require('@babel/core');
|
||||||
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
* run Flow. */
|
* run Flow. */
|
||||||
const babelRegisterOnly = require('metro/src/babelRegisterOnly');
|
const babelRegisterOnly = require('metro-babel-register');
|
||||||
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error
|
||||||
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
* found when Flow v0.54 was deployed. To see the error delete this comment and
|
||||||
* run Flow. */
|
* run Flow. */
|
||||||
|
|
|
@ -167,6 +167,7 @@
|
||||||
"inquirer": "^3.0.6",
|
"inquirer": "^3.0.6",
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"metro": "^0.34.0",
|
"metro": "^0.34.0",
|
||||||
|
"metro-babel-register": "^0.34.1",
|
||||||
"metro-core": "^0.34.0",
|
"metro-core": "^0.34.0",
|
||||||
"mime": "^1.3.4",
|
"mime": "^1.3.4",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const babelRegisterOnly = require('metro/src/babelRegisterOnly');
|
const babelRegisterOnly = require('metro-babel-register');
|
||||||
const escapeRegExp = require('lodash/escapeRegExp');
|
const escapeRegExp = require('lodash/escapeRegExp');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue