@expo/metro-config 58.0.18 → 58.0.19
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/build/serializer/reconcileTransformSerializerPlugin.js +3 -4
- package/build/serializer/reconcileTransformSerializerPlugin.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/cjs-detection.js +74 -45
- package/build/transform-worker/noxcturnal/plugins/cjs-detection.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/inline-requires.js +6 -5
- package/build/transform-worker/noxcturnal/plugins/inline-requires.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/metro-esm-globals.js +5 -3
- package/build/transform-worker/noxcturnal/plugins/metro-esm-globals.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/module-eligibility.js +13 -9
- package/build/transform-worker/noxcturnal/plugins/module-eligibility.js.map +1 -1
- package/build/transform-worker/noxcturnal/plugins/platform-select.js +13 -1
- package/build/transform-worker/noxcturnal/plugins/platform-select.js.map +1 -1
- package/package.json +6 -6
|
@@ -209,13 +209,12 @@ async function reconcileTransformSerializerPlugin(entryPoint, preModules, graph,
|
|
|
209
209
|
options
|
|
210
210
|
];
|
|
211
211
|
async function transformDependencyOutput(value, outputItem) {
|
|
212
|
-
if (outputItem.type !== 'js/module' || value.path.endsWith('.json') || value.path.match(/\.(s?css|sass)$/)) {
|
|
213
|
-
return outputItem;
|
|
214
|
-
}
|
|
215
212
|
// This should be cached by the transform worker for use here to ensure close to consistent
|
|
216
213
|
// results between the tree-shake and the final transform.
|
|
217
214
|
const reconcile = outputItem.data.reconcile;
|
|
218
|
-
|
|
215
|
+
if (outputItem.type !== 'js/module' || !reconcile) {
|
|
216
|
+
return outputItem;
|
|
217
|
+
}
|
|
219
218
|
let ast = outputItem.data.ast;
|
|
220
219
|
(0, _assert().default)(ast, 'Missing AST for module: ' + value.path);
|
|
221
220
|
delete outputItem.data.ast;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["serializer/reconcileTransformSerializerPlugin.ts"],"sourcesContent":[null],"names":["isEnvBoolean","reconcileTransformSerializerPlugin","sortDependencies","FORCE_REQUIRE_NAME_HINTS","dependencies","accordingTo","nextDependencies","Map","findDependency","dep","original","get","data","key","isESMImport","inverseKey","hashKey","getKeyForDependency","asyncType","name","contextParams","has","isOptional","Error","Array","from","entries","map","join","forEach","set","isOptimizeEnabled","graph","transformOptions","customTransformOptions","String","entryPoint","preModules","options","value","values","index","output","isExpoJsOutput","transformDependencyOutput","outputItem","
|
|
1
|
+
{"version":3,"sources":["serializer/reconcileTransformSerializerPlugin.ts"],"sourcesContent":[null],"names":["isEnvBoolean","reconcileTransformSerializerPlugin","sortDependencies","FORCE_REQUIRE_NAME_HINTS","dependencies","accordingTo","nextDependencies","Map","findDependency","dep","original","get","data","key","isESMImport","inverseKey","hashKey","getKeyForDependency","asyncType","name","contextParams","has","isOptional","Error","Array","from","entries","map","join","forEach","set","isOptimizeEnabled","graph","transformOptions","customTransformOptions","String","entryPoint","preModules","options","value","values","index","output","isExpoJsOutput","transformDependencyOutput","outputItem","reconcile","type","ast","assert","path","importDefault","importAll","sideEffectReferences","filter","fullDep","isResolvedDependency","absolutePath","undefined","hasSideEffectWithDebugTrace","file","applyImportSupport","collectLocations","filename","experimentalImportSupport","inlineRequires","nonInlinedRequires","concat","dependencyMapName","importDeclarationLocs","metadata","metro","unstable_importDeclarationLocs","collectDependencies","collectDependenciesOptions","unstable_isESMImportAtSource","loc","locToKey","collectOnly","keepRequireNames","dependencyTransformer","error","InternalInvalidRequireCallError","InvalidRequireCallError","wrappedAst","JsFileWrapping","wrapModule","globalPrefix","unstable_useStaticHermesModuleFactory","reserved","unstable_dependencyMapReservedName","push","normalizePseudoGlobals","reservedNames","result","generate","compact","unstable_compactOutput","retainLines","sourceFileName","sourceMaps","code","lineCount","minify","source","getSource","toString","rawMappings","minifiedMap","minifyCode","vlqMapFromEncodedMap","vlqMapFromDecodedMap","decodedMap","newData","functionMap"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-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
mode: 'parent'
|
|
32
|
-
}
|
|
33
|
-
}, (path, state)=>{
|
|
34
|
-
if (path.parentPath?.node.type !== 'AssignmentExpression' || path.parentPath.node.start !== path.node.start) {
|
|
35
|
-
return;
|
|
25
|
+
nox.defineVisitor({
|
|
26
|
+
route: 'AssignmentExpression',
|
|
27
|
+
children: {
|
|
28
|
+
left: {
|
|
29
|
+
route: 'StaticMemberExpression'
|
|
30
|
+
}
|
|
36
31
|
}
|
|
37
|
-
|
|
38
|
-
const isModuleExports = (pattern === 'module.exports' || pattern.startsWith('module.exports.')) && !path.scope.hasBinding('module');
|
|
39
|
-
const isExportsProperty = pattern.startsWith('exports.') && !path.scope.hasBinding('exports');
|
|
40
|
-
if (isModuleExports || isExportsProperty) state.hasCjsExports = true;
|
|
41
|
-
}),
|
|
42
|
-
nox.defineVisitor('AssignmentExpression', {
|
|
32
|
+
}, {
|
|
43
33
|
scope: true,
|
|
44
34
|
children: {
|
|
45
35
|
left: {
|
|
46
|
-
route: '
|
|
36
|
+
route: 'StaticMemberExpression',
|
|
47
37
|
fields: [
|
|
48
|
-
'
|
|
38
|
+
'memberPath'
|
|
49
39
|
]
|
|
50
40
|
}
|
|
51
41
|
}
|
|
52
42
|
}, (path, state)=>{
|
|
53
|
-
if (state.hasCjsExports) return;
|
|
54
43
|
const left = path.getChild('left');
|
|
55
|
-
if (left
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
if (left == null) return;
|
|
45
|
+
const pattern = String(left.node.memberPath ?? '');
|
|
46
|
+
const isModuleExports = (pattern === 'module.exports' || pattern.startsWith('module.exports.')) && !path.scope.hasBinding('module');
|
|
47
|
+
const isExportsProperty = pattern.startsWith('exports.') && !path.scope.hasBinding('exports');
|
|
48
|
+
if (isModuleExports || isExportsProperty) state.hasCjsExports = true;
|
|
58
49
|
}),
|
|
59
|
-
nox.defineVisitor(
|
|
60
|
-
|
|
50
|
+
nox.defineVisitor({
|
|
51
|
+
route: 'AssignmentExpression',
|
|
61
52
|
children: {
|
|
62
|
-
|
|
63
|
-
route: '
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
'memberPath'
|
|
73
|
-
]
|
|
53
|
+
left: {
|
|
54
|
+
route: 'Identifier',
|
|
55
|
+
where: {
|
|
56
|
+
name: {
|
|
57
|
+
equals: 'exports'
|
|
58
|
+
},
|
|
59
|
+
global: {
|
|
60
|
+
equals: true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
74
63
|
}
|
|
75
64
|
}
|
|
76
|
-
}, (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
}, {}, (_path, state)=>{
|
|
66
|
+
state.hasCjsExports = true;
|
|
67
|
+
}),
|
|
68
|
+
...[
|
|
69
|
+
'identifier',
|
|
70
|
+
'member'
|
|
71
|
+
].map((target)=>nox.defineVisitor({
|
|
72
|
+
route: 'CallExpression',
|
|
73
|
+
where: {
|
|
74
|
+
calleePath: {
|
|
75
|
+
equals: 'Object.assign'
|
|
76
|
+
},
|
|
77
|
+
calleeGlobal: {
|
|
78
|
+
equals: true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
children: {
|
|
82
|
+
callee: {
|
|
83
|
+
route: 'StaticMemberExpression|ComputedMemberExpression'
|
|
84
|
+
},
|
|
85
|
+
arguments: target === 'identifier' ? {
|
|
86
|
+
route: 'Identifier',
|
|
87
|
+
index: 0,
|
|
88
|
+
where: {
|
|
89
|
+
name: {
|
|
90
|
+
equals: 'exports'
|
|
91
|
+
},
|
|
92
|
+
global: {
|
|
93
|
+
equals: true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
} : {
|
|
97
|
+
route: 'StaticMemberExpression|ComputedMemberExpression',
|
|
98
|
+
index: 0,
|
|
99
|
+
where: {
|
|
100
|
+
memberPath: {
|
|
101
|
+
equals: 'module.exports'
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
fields: [
|
|
108
|
+
'argumentCount'
|
|
109
|
+
]
|
|
110
|
+
}, (path, state)=>{
|
|
111
|
+
if (path.node.argumentCount > 1) state.hasCjsExports = true;
|
|
112
|
+
}))
|
|
84
113
|
],
|
|
85
114
|
post (context, state) {
|
|
86
115
|
context.metadata.set('hasCjsExports', state.hasCjsExports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["transform-worker/noxcturnal/plugins/cjs-detection.ts"],"sourcesContent":[null],"names":["createCjsDetectionPlugin","nox","defineNativePlugin","name","contract","metadata","writes","createState","hasCjsExports","visitors","defineVisitor","
|
|
1
|
+
{"version":3,"sources":["transform-worker/noxcturnal/plugins/cjs-detection.ts"],"sourcesContent":[null],"names":["createCjsDetectionPlugin","nox","defineNativePlugin","name","contract","metadata","writes","createState","hasCjsExports","visitors","defineVisitor","route","children","left","scope","fields","path","state","getChild","pattern","String","node","memberPath","isModuleExports","startsWith","hasBinding","isExportsProperty","where","equals","global","_path","map","target","calleePath","calleeGlobal","callee","arguments","index","argumentCount","post","context","set"],"mappings":";;;;+BAIgBA;;;eAAAA;;;AAAT,SAASA,yBACdC,GAAe;IAEf,OAAOA,IAAIC,kBAAkB,CAA6B;QACxDC,MAAM;QACNC,UAAU;YAAEC,UAAU;gBAAEC,QAAQ;oBAAC;iBAAgB;YAAC;QAAE;QACpDC,aAAa,IAAO,CAAA;gBAAEC,eAAe;YAAM,CAAA;QAC3CC,UAAU;YACRR,IAAIS,aAAa,CACf;gBAAEC,OAAO;gBAAwBC,UAAU;oBAAEC,MAAM;wBAAEF,OAAO;oBAAyB;gBAAE;YAAE,GACzF;gBACEG,OAAO;gBACPF,UAAU;oBAAEC,MAAM;wBAAEF,OAAO;wBAA0BI,QAAQ;4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AAEb,QAAQ;wBAAC;qBAAgB;gBAAC,GAC5B,CAACC,MAAMC;oBACL,IAAID,KAAKK,IAAI,CAACiB,aAAa,GAAI,GAAGrB,MAAMT,aAAa,GAAG;gBAC1D;SAGL;QACD+B,MAAKC,OAAO,EAAEvB,KAAK;YACjBuB,QAAQnC,QAAQ,CAACoC,GAAG,CAAC,iBAAiBxB,MAAMT,aAAa;QAC3D;IACF;AACF"}
|
|
@@ -28,13 +28,15 @@ function createInlineRequiresPlugin(nox) {
|
|
|
28
28
|
};
|
|
29
29
|
},
|
|
30
30
|
visitors: [
|
|
31
|
-
nox.defineVisitor(
|
|
31
|
+
nox.defineVisitor({
|
|
32
|
+
route: 'VariableDeclaration',
|
|
33
|
+
parent: {
|
|
34
|
+
route: 'Program'
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
32
37
|
fields: [
|
|
33
38
|
'kind'
|
|
34
39
|
],
|
|
35
|
-
ancestry: {
|
|
36
|
-
mode: 'parent'
|
|
37
|
-
},
|
|
38
40
|
scope: true,
|
|
39
41
|
children: {
|
|
40
42
|
declarations: {
|
|
@@ -70,7 +72,6 @@ function createInlineRequiresPlugin(nox) {
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
}, (declaration, state)=>{
|
|
73
|
-
if (declaration.parentPath?.node.type !== 'Program') return;
|
|
74
75
|
const declarators = declaration.getChildList('declarations');
|
|
75
76
|
const retained = [];
|
|
76
77
|
const replacements = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["transform-worker/noxcturnal/plugins/inline-requires.ts"],"sourcesContent":[null],"names":["createInlineRequiresPlugin","nox","defineNativePlugin","name","editEffect","contract","syntax","anyOf","createState","context","input","expoPluginData","ignored","Set","options","nonInlinedRequires","bindings","Map","visitors","defineVisitor","
|
|
1
|
+
{"version":3,"sources":["transform-worker/noxcturnal/plugins/inline-requires.ts"],"sourcesContent":[null],"names":["createInlineRequiresPlugin","nox","defineNativePlugin","name","editEffect","contract","syntax","anyOf","createState","context","input","expoPluginData","ignored","Set","options","nonInlinedRequires","bindings","Map","visitors","defineVisitor","route","parent","fields","scope","children","declarations","id","init","object","declaration","state","declarators","getChildList","retained","replacements","declaratorPath","declarator","getChild","node","type","push","call","undefined","inlineable","calleeName","calleeGlobal","argumentCount","staticArgument","moduleName","has","startsWith","String","binding","get","resolved","getBinding","declarationId","references","unsafe","some","reference","write","memberWrite","set","code","sourceText","start","end","length","replacement","editor","overwrite","remove","replaceWith","kind","map","join"],"mappings":";;;;+BAgBgBA;;;eAAAA;;;uCAde;AAcxB,SAASA,2BACdC,GAAe;IAEf,OAAOA,IAAIC,kBAAkB,CAAsB;QACjDC,MAAM;QACNC,YAAY;QACZC,UAAU;YAAEC,QAAQ;gBAAEC,OAAO;oBAAC;iBAAsB;YAAC;QAAE;QACvDC,aAAYC,OAAO;YACjB,MAAM,EAAEC,KAAK,EAAE,GAAGC,IAAAA,qCAAc,EAACF;YACjC,OAAO;gBACLG,SAAS,IAAIC,IAAIH,MAAMI,OAAO,CAACC,kBAAkB,IAAI,EAAE;gBACvDC,UAAU,IAAIC;YAChB;QACF;QACAC,UAAU;YACRjB,IAAIkB,aAAa,CACf;gBAAEC,OAAO;gBAAuBC,QAAQ;oBAAED,OAAO;gBAAU;YAAE,GAC7D;gBACEE,QAAQ;oBAAC;iBAAO;gBAChBC,OAAO;gBACPC,UAAU;oBACRC,cAAc;wBACZL,OAAO;wBACPI,UAAU;4BACRE,IAAI;gCAAEN,OAAO;gCAAcE,QAAQ;oCAAC;iCAAO;4BAAC;4BAC5CK,MAAM;gCACJP,OAAO;gCACPE,QAAQ;oCAAC;oCAAc;oCAAgB;oCAAkB;iCAAgB;gCACzEE,UAAU;oCACRI,QAAQ;wCACNR,OAAO;wCACPE,QAAQ;4CAAC;4CAAc;4CAAgB;4CAAkB;yCAAgB;oCAC3E;gCACF;4BACF;wBACF;oBACF;gBACF;YACF,GACA,CAACO,aAAaC;gBACZ,MAAMC,cAAcF,YAAYG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AC/BC,QAAQJ,SAASG,UAAU,CAACE,IAAI,CAC9B,CAACC,YAAcA,UAAUC,KAAK,IAAID,UAAUE,WAAW;wBAE3D,IACA;wBACJhC,MAAMd,QAAQ,CAAC+C,GAAG,CAAC5D,MAAMiD;oBAC3B;oBACA,IAAI,CAACA,WAAWA,QAAQI,aAAa,KAAK9B,GAAGA,EAAE,EAAE;wBAC/CO,SAASO,IAAI,CAACJ;wBACd;oBACF;oBACA,IAAIgB,QAAQM,MAAM,EAAE;wBAClBzB,SAASO,IAAI,CAACJ;wBACd;oBACF;oBACA,MAAM4B,OAAOrC,KAAKsC,UAAU;oBAC5B,KAAK,MAAML,aAAaR,QAAQK,UAAU,CAAE;wBAC1CvB,aAAaM,IAAI,CAAC;4BAChB0B,OAAON,UAAUM,KAAK;4BACtBC,KAAKP,UAAUO,GAAG;4BAClBH;wBACF;oBACF;gBACF;gBAEA,IAAI/B,SAASmC,MAAM,KAAKrC,YAAYqC,MAAM,EAAE;gBAC5C,KAAK,MAAMC,eAAenC,aAAc;oBACtCL,YAAYpB,OAAO,CAAC6D,MAAM,CAACC,SAAS,CAClCF,YAAYH,KAAK,EACjBG,YAAYF,GAAG,EACfE,YAAYL,IAAI;gBAEpB;gBACA,IAAI/B,SAASmC,MAAM,KAAK,GAAG;oBACzBvC,YAAY2C,MAAM;gBACpB,OAAO;oBACL3C,YAAY4C,WAAW,CACrB,GAAGtB,OAAOtB,YAAYS,IAAI,CAACoC,IAAI,EAAE,CAAC,EAAEzC,SACjC0C,GAAG,CAAC,CAACvC,aAAeA,WAAW6B,UAAU,IACzCW,IAAI,CAAC,MAAM,CAAC,CAAC;gBAEpB;YACF;SAEH;IACH;AACF"}
|
|
@@ -44,8 +44,7 @@ function createMetroEsmGlobalsPlugin(nox) {
|
|
|
44
44
|
}),
|
|
45
45
|
nox.defineVisitor('Identifier', {
|
|
46
46
|
fields: [
|
|
47
|
-
'name'
|
|
48
|
-
'global'
|
|
47
|
+
'name'
|
|
49
48
|
],
|
|
50
49
|
where: {
|
|
51
50
|
name: {
|
|
@@ -54,10 +53,13 @@ function createMetroEsmGlobalsPlugin(nox) {
|
|
|
54
53
|
'module',
|
|
55
54
|
'exports'
|
|
56
55
|
]
|
|
56
|
+
},
|
|
57
|
+
global: {
|
|
58
|
+
equals: true
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
}, (identifier, state)=>{
|
|
60
|
-
if (
|
|
62
|
+
if (!(0, _noxcturnaltransformer.metroPluginData)(identifier.context).normalizePseudoGlobals) {
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
const replacement = state.names[String(identifier.node.name)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["transform-worker/noxcturnal/plugins/metro-esm-globals.ts"],"sourcesContent":[null],"names":["createMetroEsmGlobalsPlugin","pseudoGlobalName","scope","preferred","hasBinding","generateUid","nox","defineNativePlugin","name","createState","names","global","module","exports","visitors","defineVisitor","program","state","rename","metroPluginData","context","normalizePseudoGlobals","pseudoGlobals","fields","where","oneOf","
|
|
1
|
+
{"version":3,"sources":["transform-worker/noxcturnal/plugins/metro-esm-globals.ts"],"sourcesContent":[null],"names":["createMetroEsmGlobalsPlugin","pseudoGlobalName","scope","preferred","hasBinding","generateUid","nox","defineNativePlugin","name","createState","names","global","module","exports","visitors","defineVisitor","program","state","rename","metroPluginData","context","normalizePseudoGlobals","pseudoGlobals","fields","where","oneOf","equals","identifier","replacement","String","node","replaceWith"],"mappings":";;;;+BAmBgBA;;;eAAAA;;;uCAbT;AAMP,SAASC,iBACPC,KAA+E,EAC/EC,SAAiB;IAEjB,OAAOD,MAAME,UAAU,CAACD,aAAaD,MAAMG,WAAW,CAACF,aAAaA;AACtE;AAEO,SAASH,4BACdM,GAAe;IAEf,OAAOA,IAAIC,kBAAkB,CAAuB;QAClDC,MAAM;QACNC,aAAa,IAAO,CAAA;gBAAEC,OAAO;oBAAEC,QAAQ;oBAAKC,QAAQ;oBAAKC,SAAS;gBAAI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
|
|
26
26
|
path.unsupported('decorator-lowering');
|
|
27
27
|
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
...isHermesV1 ? [] : [
|
|
29
|
+
nox.defineVisitor('Function', {
|
|
30
|
+
fields: [
|
|
31
|
+
'generator'
|
|
32
|
+
],
|
|
33
|
+
where: {
|
|
34
|
+
async: {
|
|
35
|
+
equals: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, (fn)=>{
|
|
35
39
|
fn.unsupported(fn.node.generator === true ? 'async-generator-lowering' : 'async-lowering');
|
|
36
|
-
}
|
|
37
|
-
|
|
40
|
+
})
|
|
41
|
+
]
|
|
38
42
|
];
|
|
39
43
|
}
|
|
40
44
|
function createModuleEligibilityPlugin(nox, isHermesV1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["transform-worker/noxcturnal/plugins/module-eligibility.ts"],"sourcesContent":[null],"names":["createEligibilityVisitors","createModuleEligibilityPlugin","nox","isHermesV1","defineVisitor","path","unsupported","fields","
|
|
1
|
+
{"version":3,"sources":["transform-worker/noxcturnal/plugins/module-eligibility.ts"],"sourcesContent":[null],"names":["createEligibilityVisitors","createModuleEligibilityPlugin","nox","isHermesV1","defineVisitor","path","unsupported","fields","where","async","equals","fn","node","generator","defineNativePlugin","name","contract","queries","imports","exports","analyze","context","modules","query","length","status","analysis","undefined","reason","visitors"],"mappings":";;;;;;;;;;;;;;;QAIgBA;eAAAA;;QAqBAC;eAAAA;;;AArBT,SAASD,0BAA0BE,GAAe,EAAEC,UAAmB;IAC5E,OAAO;QACLD,IAAIE,aAAa,CAAC,aAAa,CAAC,GAAG,CAACC;YAClCA,KAAKC,WAAW,CAAC;QACnB;WACIH,aACA,EAAE,GACF;YACED,IAAIE,aAAa,CACf,YACA;gBAAEG,QAAQ;oBAAC;iBAAY;gBAAEC,OAAO;oBAAEC,OAAO;wBAAEC,QAAQ;oBAAK;gBAAE;YAAE,GAC5D,CAACC;gBACCA,GAAGL,WAAW,CACZK,GAAGC,IAAI,CAACC,SAAS,KAAK,OAAO,6BAA6B;YAE9D;SAEH;KACN;AACH;AAEO,SAASZ,8BACdC,GAAe,EACfC,UAAmB;IAEnB,OAAOD,IAAIY,kBAAkB,CAAC;QAC5BC,MAAM;QACNC,UAAU;YAAEC,SAAS;gBAAC;oBAAEC,SAAS;oBAAMC,SAAS;gBAAK;aAAE;QAAC;QACxDC,SAAQC,OAAO;YACb,MAAMC,UAAUD,QAAQE,KAAK,CAAC;gBAAEL,SAAS;gBAAMC,SAAS;YAAK;YAC7D,OAAOG,QAAQJ,OAAO,CAACM,MAAM,KAAK,KAAKF,QAAQH,OAAO,CAACK,MAAM,KAAK,IAC9D;gBAAEC,QAAQ;gBAAaC,UAAUC;YAAU,IAC3C;gBACEF,QAAQ;gBACRG,QAAQ;YACV;QACN;QACAC,UAAU7B,0BAA0BE,KAAKC;IAC3C;AACF"}
|
|
@@ -19,7 +19,19 @@ function createPlatformSelectPlugin(nox, platform) {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
visitors: [
|
|
22
|
-
nox.defineVisitor(
|
|
22
|
+
nox.defineVisitor({
|
|
23
|
+
route: 'CallExpression',
|
|
24
|
+
where: {
|
|
25
|
+
calleePath: {
|
|
26
|
+
equals: 'Platform.select'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
children: {
|
|
30
|
+
arguments: {
|
|
31
|
+
route: 'ObjectExpression'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
23
35
|
scope: true,
|
|
24
36
|
children: {
|
|
25
37
|
callee: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["transform-worker/noxcturnal/plugins/platform-select.ts"],"sourcesContent":[null],"names":["createPlatformSelectPlugin","nox","platform","defineNativePlugin","name","contract","syntax","anyOf","visitors","defineVisitor","
|
|
1
|
+
{"version":3,"sources":["transform-worker/noxcturnal/plugins/platform-select.ts"],"sourcesContent":[null],"names":["createPlatformSelectPlugin","nox","platform","defineNativePlugin","name","contract","syntax","anyOf","visitors","defineVisitor","route","where","calleePath","equals","children","arguments","scope","callee","fields","properties","value","call","getChild","matchesPattern","hasBinding","argument","getChildList","is","some","property","node","type","computed","find","key","index","length","String","undefined","selected","replaceWith","getSource","context","code","parseExpression"],"mappings":";;;;+BAIgBA;;;eAAAA;;;AAAT,SAASA,2BACdC,GAAe,EACfC,QAAmC;IAEnC,OAAOD,IAAIE,kBAAkB,CAAC;QAC5BC,MAAM;QACNC,UAAU;YAAEC,QAAQ;gBAAEC,OAAO;oBAAC;iBAAiB;YAAC;QAAE;QAClDC,UAAU;YACRP,IAAIQ,aAAa,CACf;gBACEC,OAAO;gBACPC,OAAO;oBAAEC,YAAY;wBAAEC,QAAQ;oBAAkB;gBAAE;gBACnDC,UAAU;oBAAEC,WAAW;wBAAEL,OAAO;oBAAmB;gBAAE;YACvD,GACA;gBACEM,OAAO;gBACPF,UAAU;oBACRG,QAAQ;wBAAEP,OAAO;wBAAcQ,QAAQ;4BAAC;4BAAc;yBAAO;oBAAC;oBAC9DH,WAAW;wBACTL,OAAO;wBACPI,UAAU;4BACRK,YAAY;gCACVT,OAAO;gCACPQ,QAAQ;oCAAC;oCAAO;iCAAW;gCAC3BJ,UAAU;oCAAEM,OAAO;wCAAEV,OAAO;oCAAa;gCAAE;4BAC7C;wBACF;oBACF;gBACF;YACF,GACA,CAACW;gBACC,MAAMJ,SAASI,KAAKC,QAAQ,CAAC;gBAC7B,IAAI,CAACL,QAAQM,eAAe,sBAAsBF,KAAKL,KAAK,CAACQ,UAAU,CAAC,aACtE;gBACF,MAAMC,WAAWJ,KAAKK,YAAY,CAAC,YAAY,CAAC,EAAE;gBAClD,IAAI,CAACD,UAAUE,GAAG,qBAAqB;gBACvC,MAAMR,aAAaM,SAASC,YAAY,CAAC;gBACzC,IACEP,WAAWS,IAAI,CACb,CAACC,WACCA,SAASC,IAAI,CAACC,IAAI,KAAK,oBAAoBF,SAASC,IAAI,CAACE,QAAQ,KAAK,OAE1E;oBACA;gBACF;gBACA,MAAMC,OAAO,CAACC;oBACZ,IAAK,IAAIC,QAAQhB,WAAWiB,MAAM,GAAG,GAAGD,SAAS,GAAGA,QAAS;wBAC3D,MAAMN,WAAWV,UAAU,CAACgB,MAAM;wBAClC,IAAIE,OAAOR,SAASC,IAAI,CAACI,GAAG,MAAMA,KAAK,OAAOL;oBAChD;oBACA,OAAOS;gBACT;gBACA,MAAMC,WACJ,AAACrC,CAAAA,WAAW+B,KAAK/B,YAAYoC,SAAQ,KACpCpC,CAAAA,aAAa,QAAQoC,YAAYL,KAAK,SAAQ,KAC/CA,KAAK;gBACP,MAAMb,QAAQmB,UAAUjB,SAAS;gBACjCD,KAAKmB,WAAW,CACdpB,QAAQA,MAAMqB,SAAS,KAAKpB,KAAKqB,OAAO,CAACC,IAAI,CAACC,eAAe,CAAC;YAElE;SAEH;IACH;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/metro-config",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.19",
|
|
4
4
|
"description": "A Metro config for running React Native projects with the Metro bundler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"@babel/code-frame": "^7.20.0",
|
|
66
66
|
"@babel/core": "^7.20.0",
|
|
67
67
|
"@babel/generator": "^7.20.5",
|
|
68
|
-
"@expo/config": "~58.0.
|
|
68
|
+
"@expo/config": "~58.0.9",
|
|
69
69
|
"@expo/env": "~2.5.3",
|
|
70
70
|
"@expo/json-file": "~11.2.1",
|
|
71
71
|
"@expo/metro": "~58.0.0",
|
|
72
72
|
"@expo/platforms": "^58.0.1",
|
|
73
|
-
"@expo/require-utils": "^58.0.
|
|
73
|
+
"@expo/require-utils": "^58.0.5",
|
|
74
74
|
"@expo/spawn-async": "^1.8.0",
|
|
75
75
|
"@jridgewell/gen-mapping": "^0.3.13",
|
|
76
76
|
"@jridgewell/remapping": "^2.3.5",
|
|
77
77
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
78
78
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
79
|
-
"@react-native/js-polyfills": "0.88.
|
|
79
|
+
"@react-native/js-polyfills": "0.88.1",
|
|
80
80
|
"browserslist": "^4.25.0",
|
|
81
81
|
"chalk": "^4.1.0",
|
|
82
82
|
"debug": "^4.3.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"hermes-parser": "^0.36.0",
|
|
86
86
|
"jsc-safe-url": "^0.2.4",
|
|
87
87
|
"lightningcss": "^1.30.1",
|
|
88
|
-
"noxcturnal": "^0.1.
|
|
88
|
+
"noxcturnal": "^0.1.11",
|
|
89
89
|
"picomatch": "^4.0.4",
|
|
90
90
|
"postcss": "^8.5.23",
|
|
91
91
|
"resolve-from": "^5.0.0"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@babel/plugin-transform-explicit-resource-management": "^7.28.6",
|
|
95
95
|
"@babel/plugin-transform-exponentiation-operator": "^7.28.6",
|
|
96
96
|
"@babel/plugin-transform-sticky-regex": "^7.27.1",
|
|
97
|
-
"@expo/internal-scripts": "58.0.
|
|
97
|
+
"@expo/internal-scripts": "58.0.5",
|
|
98
98
|
"@types/babel__code-frame": "^7.0.1",
|
|
99
99
|
"@types/babel__core": "^7.20.5",
|
|
100
100
|
"@types/babel__generator": "^7.27.0",
|