metro-transform-worker 0.71.1 → 0.71.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/src/index.js +1 -0
- package/src/index.js.flow +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metro-transform-worker",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.2",
|
|
4
4
|
"description": "🚇 Transform worker for Metro.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"@babel/parser": "^7.14.0",
|
|
19
19
|
"@babel/types": "^7.0.0",
|
|
20
20
|
"babel-preset-fbjs": "^3.4.0",
|
|
21
|
-
"metro": "0.71.
|
|
22
|
-
"metro-babel-transformer": "0.71.
|
|
23
|
-
"metro-cache": "0.71.
|
|
24
|
-
"metro-cache-key": "0.71.
|
|
25
|
-
"metro-hermes-compiler": "0.71.
|
|
26
|
-
"metro-source-map": "0.71.
|
|
27
|
-
"metro-transform-plugins": "0.71.
|
|
21
|
+
"metro": "0.71.2",
|
|
22
|
+
"metro-babel-transformer": "0.71.2",
|
|
23
|
+
"metro-cache": "0.71.2",
|
|
24
|
+
"metro-cache-key": "0.71.2",
|
|
25
|
+
"metro-hermes-compiler": "0.71.2",
|
|
26
|
+
"metro-source-map": "0.71.2",
|
|
27
|
+
"metro-transform-plugins": "0.71.2",
|
|
28
28
|
"nullthrows": "^1.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"metro-memory-fs": "0.71.
|
|
32
|
-
"metro-minify-uglify": "0.71.
|
|
33
|
-
"metro-react-native-babel-transformer": "0.71.
|
|
31
|
+
"metro-memory-fs": "0.71.2",
|
|
32
|
+
"metro-minify-uglify": "0.71.2",
|
|
33
|
+
"metro-react-native-babel-transformer": "0.71.2"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/index.js
CHANGED
|
@@ -249,6 +249,7 @@ async function transformJS(file, { config, options, projectRoot }) {
|
|
|
249
249
|
keepRequireNames: options.dev,
|
|
250
250
|
allowOptionalDependencies: config.allowOptionalDependencies,
|
|
251
251
|
dependencyMapName: config.unstable_dependencyMapReservedName,
|
|
252
|
+
unstable_allowRequireContext: config.unstable_allowRequireContext,
|
|
252
253
|
}; // $FlowFixMe[unsupported-syntax] dynamic require
|
|
253
254
|
|
|
254
255
|
const collectDependencies = require(config.unstable_collectDependenciesPath);
|
package/src/index.js.flow
CHANGED
|
@@ -99,6 +99,8 @@ export type JsTransformerConfig = $ReadOnly<{
|
|
|
99
99
|
unstable_disableModuleWrapping: boolean,
|
|
100
100
|
unstable_disableNormalizePseudoGlobals: boolean,
|
|
101
101
|
unstable_compactOutput: boolean,
|
|
102
|
+
/** Enable `require.context` statements which can be used to import multiple files in a directory. */
|
|
103
|
+
unstable_allowRequireContext: boolean,
|
|
102
104
|
}>;
|
|
103
105
|
|
|
104
106
|
export type {CustomTransformOptions} from 'metro-babel-transformer';
|
|
@@ -396,6 +398,7 @@ async function transformJS(
|
|
|
396
398
|
keepRequireNames: options.dev,
|
|
397
399
|
allowOptionalDependencies: config.allowOptionalDependencies,
|
|
398
400
|
dependencyMapName: config.unstable_dependencyMapReservedName,
|
|
401
|
+
unstable_allowRequireContext: config.unstable_allowRequireContext,
|
|
399
402
|
};
|
|
400
403
|
// $FlowFixMe[unsupported-syntax] dynamic require
|
|
401
404
|
const collectDependencies: CollectDependenciesFn<DependencySplitCondition> = require(config.unstable_collectDependenciesPath);
|