@expo/metro-config 54.0.1 → 54.0.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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { types, template } from '@babel/core';
|
|
2
2
|
export declare const defaultWrapHelper: ({ statement }: typeof template, name: string) => types.Statement;
|
|
3
|
-
export declare const strictNamespaceWrapHelper: ({ statement }: typeof template, name: string) => types.Statement;
|
|
4
3
|
export declare const namespaceWrapHelper: ({ statement }: typeof template, name: string) => types.Statement;
|
|
5
4
|
export declare const liveExportAllHelper: ({ statement }: typeof template, id: string) => types.Statement;
|
|
6
5
|
export declare const liveExportHelper: (t: typeof types, exportName: string, expr: types.Expression) => types.Statement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nullBoundExpression = exports.esModuleExportTemplate = exports.varDeclaratorCallHelper = exports.sideEffectRequireCall = exports.requireCall = exports.varDeclaratorHelper = exports.assignExportHelper = exports.liveExportHelper = exports.liveExportAllHelper = exports.namespaceWrapHelper = exports.
|
|
3
|
+
exports.nullBoundExpression = exports.esModuleExportTemplate = exports.varDeclaratorCallHelper = exports.sideEffectRequireCall = exports.requireCall = exports.varDeclaratorHelper = exports.assignExportHelper = exports.liveExportHelper = exports.liveExportAllHelper = exports.namespaceWrapHelper = exports.defaultWrapHelper = void 0;
|
|
4
4
|
exports.withLocation = withLocation;
|
|
5
5
|
const defaultWrapHelper = ({ statement }, name) => statement(`
|
|
6
6
|
function %%name%%(e) {
|
|
@@ -8,28 +8,6 @@ const defaultWrapHelper = ({ statement }, name) => statement(`
|
|
|
8
8
|
}
|
|
9
9
|
`)({ name });
|
|
10
10
|
exports.defaultWrapHelper = defaultWrapHelper;
|
|
11
|
-
const strictNamespaceWrapHelper = ({ statement }, name) => {
|
|
12
|
-
return statement(`
|
|
13
|
-
function %%name%%(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
15
|
-
var n = Object.create(null);
|
|
16
|
-
if (e) {
|
|
17
|
-
Object.keys(e).forEach(function (k) {
|
|
18
|
-
if (k !== 'default') {
|
|
19
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return e[k]; }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n.default = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
`)({ name });
|
|
31
|
-
};
|
|
32
|
-
exports.strictNamespaceWrapHelper = strictNamespaceWrapHelper;
|
|
33
11
|
const namespaceWrapHelper = ({ statement }, name) => {
|
|
34
12
|
// NOTE(@kitten): A looser option than the above that matches Metro's legacy behaviour
|
|
35
13
|
return statement(`
|
|
@@ -37,7 +15,11 @@ const namespaceWrapHelper = ({ statement }, name) => {
|
|
|
37
15
|
if (e && e.__esModule) return e;
|
|
38
16
|
var n = {};
|
|
39
17
|
if (e) Object.keys(e).forEach(function (k) {
|
|
40
|
-
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
41
23
|
});
|
|
42
24
|
n.default = e;
|
|
43
25
|
return n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/transform-plugins/helpers.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/transform-plugins/helpers.ts"],"names":[],"mappings":";;;AA6JS,oCAAY;AA3Jd,MAAM,iBAAiB,GAAG,CAAC,EAAE,SAAS,EAAmB,EAAE,IAAY,EAAmB,EAAE,CACjG,SAAS,CAAC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AE,CAAC;QAC/B,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,MAAM,IAAI,GAAG,WAAoB,CAAC;IAClC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/metro-config",
|
|
3
|
-
"version": "54.0.
|
|
3
|
+
"version": "54.0.2",
|
|
4
4
|
"description": "A Metro config for running React Native projects with the Metro bundler",
|
|
5
5
|
"main": "build/ExpoMetroConfig.js",
|
|
6
6
|
"types": "build/ExpoMetroConfig.d.ts",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "088e79428be97cf3ee11fc93e0e5a1fc1c8bea1e"
|
|
78
78
|
}
|