metro-transform-worker 0.72.1 → 0.72.3
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 +2 -2
- package/src/index.js.flow +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metro-transform-worker",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.3",
|
|
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.72.
|
|
22
|
-
"metro-babel-transformer": "0.72.
|
|
23
|
-
"metro-cache": "0.72.
|
|
24
|
-
"metro-cache-key": "0.72.
|
|
25
|
-
"metro-hermes-compiler": "0.72.
|
|
26
|
-
"metro-source-map": "0.72.
|
|
27
|
-
"metro-transform-plugins": "0.72.
|
|
21
|
+
"metro": "0.72.3",
|
|
22
|
+
"metro-babel-transformer": "0.72.3",
|
|
23
|
+
"metro-cache": "0.72.3",
|
|
24
|
+
"metro-cache-key": "0.72.3",
|
|
25
|
+
"metro-hermes-compiler": "0.72.3",
|
|
26
|
+
"metro-source-map": "0.72.3",
|
|
27
|
+
"metro-transform-plugins": "0.72.3",
|
|
28
28
|
"nullthrows": "^1.1.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"metro-memory-fs": "0.72.
|
|
32
|
-
"metro-minify-uglify": "0.72.
|
|
33
|
-
"metro-react-native-babel-transformer": "0.72.
|
|
31
|
+
"metro-memory-fs": "0.72.3",
|
|
32
|
+
"metro-minify-uglify": "0.72.3",
|
|
33
|
+
"metro-react-native-babel-transformer": "0.72.3"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/index.js
CHANGED
|
@@ -23,8 +23,6 @@ const { stableHash } = require("metro-cache");
|
|
|
23
23
|
|
|
24
24
|
const getCacheKey = require("metro-cache-key");
|
|
25
25
|
|
|
26
|
-
const HermesCompiler = require("metro-hermes-compiler");
|
|
27
|
-
|
|
28
26
|
const {
|
|
29
27
|
fromRawMappings,
|
|
30
28
|
toBabelSegments,
|
|
@@ -118,6 +116,8 @@ const compileToBytecode = (rawCode, type, options) => {
|
|
|
118
116
|
code.slice(index);
|
|
119
117
|
}
|
|
120
118
|
|
|
119
|
+
const HermesCompiler = require("metro-hermes-compiler");
|
|
120
|
+
|
|
121
121
|
return HermesCompiler.compile(code, options);
|
|
122
122
|
};
|
|
123
123
|
|
package/src/index.js.flow
CHANGED
|
@@ -40,7 +40,6 @@ const babylon = require('@babel/parser');
|
|
|
40
40
|
const types = require('@babel/types');
|
|
41
41
|
const {stableHash} = require('metro-cache');
|
|
42
42
|
const getCacheKey = require('metro-cache-key');
|
|
43
|
-
const HermesCompiler = require('metro-hermes-compiler');
|
|
44
43
|
const {
|
|
45
44
|
fromRawMappings,
|
|
46
45
|
toBabelSegments,
|
|
@@ -260,6 +259,7 @@ const compileToBytecode = (
|
|
|
260
259
|
',$$METRO_D[0],$$METRO_D[1],$$METRO_D[2]' +
|
|
261
260
|
code.slice(index);
|
|
262
261
|
}
|
|
262
|
+
const HermesCompiler = require('metro-hermes-compiler');
|
|
263
263
|
return HermesCompiler.compile(code, options);
|
|
264
264
|
};
|
|
265
265
|
|