@rnx-kit/cli
Advanced tools
Comparing version 0.16.16 to 0.16.17
# Change Log - @rnx-kit/cli | ||
## 0.16.17 | ||
### Patch Changes | ||
- f1668f4d: Pass minify option to metro-serializer-esbuild | ||
- 839ba0e3: Allow Hermes to be run post-bundle | ||
- Updated dependencies [839ba0e3] | ||
- @rnx-kit/config@0.6.6 | ||
## 0.16.16 | ||
@@ -4,0 +13,0 @@ |
@@ -6,4 +6,4 @@ {"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/copy-assets.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/copy-assets.ts","statementMap":{"0":{"start":{"line":61,"column":76},"end":{"line":69,"column":1}},"1":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"2":{"start":{"line":73,"column":4},"end":{"line":73,"column":48}},"3":{"start":{"line":74,"column":4},"end":{"line":74,"column":20}},"4":{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},"5":{"start":{"line":80,"column":4},"end":{"line":80,"column":45}},"6":{"start":{"line":82,"column":2},"end":{"line":84,"column":3}},"7":{"start":{"line":83,"column":4},"end":{"line":83,"column":23}},"8":{"start":{"line":85,"column":2},"end":{"line":85,"column":19}},"9":{"start":{"line":89,"column":2},"end":{"line":91,"column":31}},"10":{"start":{"line":95,"column":2},"end":{"line":95,"column":80}},"11":{"start":{"line":99,"column":21},"end":{"line":99,"column":54}},"12":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"13":{"start":{"line":101,"column":4},"end":{"line":101,"column":58}},"14":{"start":{"line":104,"column":22},"end":{"line":104,"column":45}},"15":{"start":{"line":105,"column":2},"end":{"line":105,"column":17}},"16":{"start":{"line":113,"column":22},"end":{"line":113,"column":59}},"17":{"start":{"line":114,"column":2},"end":{"line":116,"column":3}},"18":{"start":{"line":115,"column":4},"end":{"line":115,"column":62}},"19":{"start":{"line":118,"column":29},"end":{"line":118,"column":72}},"20":{"start":{"line":119,"column":21},"end":{"line":119,"column":54}},"21":{"start":{"line":121,"column":2},"end":{"line":172,"column":3}},"22":{"start":{"line":123,"column":6},"end":{"line":133,"column":8}},"23":{"start":{"line":136,"column":6},"end":{"line":146,"column":8}},"24":{"start":{"line":149,"column":29},"end":{"line":149,"column":59}},"25":{"start":{"line":150,"column":6},"end":{"line":170,"column":8}},"26":{"start":{"line":176,"column":21},"end":{"line":176,"column":54}},"27":{"start":{"line":177,"column":2},"end":{"line":179,"column":3}},"28":{"start":{"line":178,"column":4},"end":{"line":178,"column":30}},"29":{"start":{"line":187,"column":2},"end":{"line":189,"column":3}},"30":{"start":{"line":188,"column":4},"end":{"line":188,"column":11}},"31":{"start":{"line":191,"column":17},"end":{"line":191,"column":35}},"32":{"start":{"line":192,"column":18},"end":{"line":194,"column":3}},"33":{"start":{"line":195,"column":2},"end":{"line":198,"column":3}},"34":{"start":{"line":196,"column":4},"end":{"line":196,"column":64}},"35":{"start":{"line":197,"column":4},"end":{"line":197,"column":11}},"36":{"start":{"line":200,"column":58},"end":{"line":204,"column":3}},"37":{"start":{"line":205,"column":2},"end":{"line":208,"column":3}},"38":{"start":{"line":206,"column":4},"end":{"line":206,"column":69}},"39":{"start":{"line":207,"column":4},"end":{"line":207,"column":11}},"40":{"start":{"line":210,"column":52},"end":{"line":210,"column":55}},"41":{"start":{"line":211,"column":14},"end":{"line":216,"column":3}},"42":{"start":{"line":218,"column":20},"end":{"line":218,"column":64}},"43":{"start":{"line":219,"column":2},"end":{"line":219,"column":30}},"44":{"start":{"line":221,"column":15},"end":{"line":221,"column":67}},"45":{"start":{"line":223,"column":18},"end":{"line":223,"column":52}},"46":{"start":{"line":224,"column":44},"end":{"line":224,"column":60}},"47":{"start":{"line":226,"column":19},"end":{"line":226,"column":63}},"48":{"start":{"line":227,"column":2},"end":{"line":333,"column":3}},"49":{"start":{"line":228,"column":4},"end":{"line":244,"column":5}},"50":{"start":{"line":229,"column":6},"end":{"line":243,"column":7}},"51":{"start":{"line":230,"column":52},"end":{"line":234,"column":9}},"52":{"start":{"line":235,"column":8},"end":{"line":242,"column":9}},"53":{"start":{"line":236,"column":10},"end":{"line":241,"column":11}},"54":{"start":{"line":237,"column":12},"end":{"line":237,"column":59}},"55":{"start":{"line":238,"column":12},"end":{"line":238,"column":54}},"56":{"start":{"line":239,"column":17},"end":{"line":241,"column":11}},"57":{"start":{"line":240,"column":12},"end":{"line":240,"column":54}},"58":{"start":{"line":247,"column":4},"end":{"line":247,"column":74}},"59":{"start":{"line":249,"column":28},"end":{"line":249,"column":68}},"60":{"start":{"line":250,"column":4},"end":{"line":252,"column":5}},"61":{"start":{"line":251,"column":6},"end":{"line":251,"column":55}},"62":{"start":{"line":254,"column":21},"end":{"line":259,"column":5}},"63":{"start":{"line":262,"column":6},"end":{"line":262,"column":74}},"64":{"start":{"line":264,"column":6},"end":{"line":265,"column":54}},"65":{"start":{"line":267,"column":6},"end":{"line":268,"column":57}},"66":{"start":{"line":270,"column":6},"end":{"line":271,"column":47}},"67":{"start":{"line":273,"column":6},"end":{"line":273,"column":66}},"68":{"start":{"line":274,"column":41},"end":{"line":277,"column":5}},"69":{"start":{"line":279,"column":24},"end":{"line":311,"column":16}},"70":{"start":{"line":313,"column":29},"end":{"line":313,"column":57}},"71":{"start":{"line":315,"column":27},"end":{"line":321,"column":16}},"72":{"start":{"line":323,"column":4},"end":{"line":323,"column":31}},"73":{"start":{"line":324,"column":4},"end":{"line":324,"column":71}},"74":{"start":{"line":325,"column":4},"end":{"line":328,"column":6}},"75":{"start":{"line":329,"column":4},"end":{"line":329,"column":77}},"76":{"start":{"line":332,"column":4},"end":{"line":332,"column":68}},"77":{"start":{"line":335,"column":2},"end":{"line":335,"column":76}},"78":{"start":{"line":335,"column":55},"end":{"line":335,"column":73}},"79":{"start":{"line":339,"column":2},"end":{"line":341,"column":3}},"80":{"start":{"line":340,"column":4},"end":{"line":340,"column":14}},"81":{"start":{"line":343,"column":2},"end":{"line":343,"column":32}},"82":{"start":{"line":344,"column":2},"end":{"line":346,"column":5}},"83":{"start":{"line":345,"column":4},"end":{"line":345,"column":66}},"84":{"start":{"line":354,"column":16},"end":{"line":357,"column":3}},"85":{"start":{"line":359,"column":2},"end":{"line":361,"column":3}},"86":{"start":{"line":360,"column":4},"end":{"line":360,"column":53}},"87":{"start":{"line":363,"column":2},"end":{"line":363,"column":27}},"88":{"start":{"line":370,"column":44},"end":{"line":370,"column":52}},"89":{"start":{"line":371,"column":19},"end":{"line":371,"column":72}},"90":{"start":{"line":372,"column":2},"end":{"line":374,"column":3}},"91":{"start":{"line":373,"column":4},"end":{"line":373,"column":11}},"92":{"start":{"line":376,"column":25},"end":{"line":376,"column":49}},"93":{"start":{"line":377,"column":61},"end":{"line":377,"column":63}},"94":{"start":{"line":379,"column":2},"end":{"line":394,"column":3}},"95":{"start":{"line":380,"column":4},"end":{"line":393,"column":5}},"96":{"start":{"line":381,"column":22},"end":{"line":383,"column":7}},"97":{"start":{"line":384,"column":32},"end":{"line":384,"column":67}},"98":{"start":{"line":385,"column":6},"end":{"line":390,"column":7}},"99":{"start":{"line":386,"column":33},"end":{"line":386,"column":59}},"100":{"start":{"line":387,"column":8},"end":{"line":389,"column":9}},"101":{"start":{"line":388,"column":10},"end":{"line":388,"column":44}},"102":{"start":{"line":392,"column":6},"end":{"line":392,"column":16}},"103":{"start":{"line":397,"column":28},"end":{"line":397,"column":67}},"104":{"start":{"line":398,"column":2},"end":{"line":406,"column":3}},"105":{"start":{"line":399,"column":29},"end":{"line":399,"column":55}},"106":{"start":{"line":400,"column":22},"end":{"line":400,"column":50}},"107":{"start":{"line":401,"column":4},"end":{"line":405,"column":5}},"108":{"start":{"line":402,"column":6},"end":{"line":404,"column":7}},"109":{"start":{"line":403,"column":8},"end":{"line":403,"column":40}},"110":{"start":{"line":408,"column":2},"end":{"line":408,"column":23}},"111":{"start":{"line":465,"column":22},"end":{"line":465,"column":55}},"112":{"start":{"line":466,"column":19},"end":{"line":466,"column":43}},"113":{"start":{"line":467,"column":18},"end":{"line":467,"column":52}},"114":{"start":{"line":468,"column":23},"end":{"line":468,"column":51}},"115":{"start":{"line":469,"column":2},"end":{"line":471,"column":3}},"116":{"start":{"line":470,"column":4},"end":{"line":470,"column":11}},"117":{"start":{"line":473,"column":23},"end":{"line":473,"column":51}},"118":{"start":{"line":474,"column":2},"end":{"line":493,"column":3}},"119":{"start":{"line":475,"column":4},"end":{"line":477,"column":5}},"120":{"start":{"line":476,"column":6},"end":{"line":476,"column":15}},"121":{"start":{"line":479,"column":26},"end":{"line":479,"column":32}},"122":{"start":{"line":480,"column":4},"end":{"line":483,"column":5}},"123":{"start":{"line":481,"column":6},"end":{"line":481,"column":70}},"124":{"start":{"line":482,"column":6},"end":{"line":482,"column":15}},"125":{"start":{"line":485,"column":19},"end":{"line":485,"column":43}},"126":{"start":{"line":486,"column":4},"end":{"line":492,"column":5}},"127":{"start":{"line":487,"column":6},"end":{"line":487,"column":42}},"128":{"start":{"line":488,"column":6},"end":{"line":488,"column":60}},"129":{"start":{"line":490,"column":6},"end":{"line":490,"column":50}},"130":{"start":{"line":491,"column":6},"end":{"line":491,"column":53}},"131":{"start":{"line":495,"column":2},"end":{"line":513,"column":3}},"132":{"start":{"line":496,"column":21},"end":{"line":496,"column":44}},"133":{"start":{"line":497,"column":22},"end":{"line":497,"column":24}},"134":{"start":{"line":498,"column":4},"end":{"line":511,"column":5}},"135":{"start":{"line":499,"column":38},"end":{"line":503,"column":7}},"136":{"start":{"line":504,"column":6},"end":{"line":510,"column":7}},"137":{"start":{"line":508,"column":8},"end":{"line":508,"column":63}},"138":{"start":{"line":509,"column":8},"end":{"line":509,"column":53}},"139":{"start":{"line":512,"column":4},"end":{"line":512,"column":33}},"140":{"start":{"line":516,"column":36},"end":{"line":546,"column":1}},"141":{"start":{"line":521,"column":4},"end":{"line":521,"column":38}},"142":{"start":{"line":522,"column":4},"end":{"line":522,"column":55}},"143":{"start":{"line":523,"column":4},"end":{"line":523,"column":38}}},"fnMap":{"0":{"name":"ensureOption","decl":{"start":{"line":71,"column":9},"end":{"line":71,"column":21}},"loc":{"start":{"line":71,"column":65},"end":{"line":76,"column":1}},"line":71},"1":{"name":"findGradleProject","decl":{"start":{"line":78,"column":9},"end":{"line":78,"column":26}},"loc":{"start":{"line":78,"column":68},"end":{"line":86,"column":1}},"line":78},"2":{"name":"gradleTargetName","decl":{"start":{"line":88,"column":9},"end":{"line":88,"column":25}},"loc":{"start":{"line":88,"column":55},"end":{"line":92,"column":1}},"line":88},"3":{"name":"isAssetsConfig","decl":{"start":{"line":94,"column":9},"end":{"line":94,"column":23}},"loc":{"start":{"line":94,"column":65},"end":{"line":96,"column":1}},"line":94},"4":{"name":"versionOf","decl":{"start":{"line":98,"column":16},"end":{"line":98,"column":25}},"loc":{"start":{"line":98,"column":51},"end":{"line":106,"column":1}},"line":98},"5":{"name":"getAndroidPaths","decl":{"start":{"line":108,"column":9},"end":{"line":108,"column":24}},"loc":{"start":{"line":112,"column":2},"end":{"line":173,"column":1}},"line":112},"6":{"name":"run","decl":{"start":{"line":175,"column":9},"end":{"line":175,"column":12}},"loc":{"start":{"line":175,"column":73},"end":{"line":180,"column":1}},"line":175},"7":{"name":"assembleAarBundle","decl":{"start":{"line":182,"column":22},"end":{"line":182,"column":39}},"loc":{"start":{"line":186,"column":17},"end":{"line":336,"column":1}},"line":186},"8":{"name":"(anonymous_8)","decl":{"start":{"line":335,"column":38},"end":{"line":335,"column":39}},"loc":{"start":{"line":335,"column":55},"end":{"line":335,"column":73}},"line":335},"9":{"name":"copyFiles","decl":{"start":{"line":338,"column":9},"end":{"line":338,"column":18}},"loc":{"start":{"line":338,"column":73},"end":{"line":347,"column":1}},"line":338},"10":{"name":"(anonymous_10)","decl":{"start":{"line":344,"column":19},"end":{"line":344,"column":20}},"loc":{"start":{"line":344,"column":29},"end":{"line":346,"column":3}},"line":344},"11":{"name":"copyAssets","decl":{"start":{"line":349,"column":22},"end":{"line":349,"column":32}},"loc":{"start":{"line":353,"column":17},"end":{"line":364,"column":1}},"line":353},"12":{"name":"gatherConfigs","decl":{"start":{"line":366,"column":22},"end":{"line":366,"column":35}},"loc":{"start":{"line":369,"column":70},"end":{"line":409,"column":1}},"line":369},"13":{"name":"copyProjectAssets","decl":{"start":{"line":464,"column":22},"end":{"line":464,"column":39}},"loc":{"start":{"line":464,"column":73},"end":{"line":514,"column":1}},"line":464},"14":{"name":"(anonymous_14)","decl":{"start":{"line":520,"column":8},"end":{"line":520,"column":9}},"loc":{"start":{"line":520,"column":67},"end":{"line":524,"column":3}},"line":520}},"branchMap":{"0":{"loc":{"start":{"line":71,"column":53},"end":{"line":71,"column":63}},"type":"default-arg","locations":[{"start":{"line":71,"column":60},"end":{"line":71,"column":63}}],"line":71},"1":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{},"end":{}}],"line":72},"2":{"loc":{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},{"start":{},"end":{}}],"line":79},"3":{"loc":{"start":{"line":82,"column":2},"end":{"line":84,"column":3}},"type":"if","locations":[{"start":{"line":82,"column":2},"end":{"line":84,"column":3}},{"start":{},"end":{}}],"line":82},"4":{"loc":{"start":{"line":90,"column":4},"end":{"line":90,"column":68}},"type":"cond-expr","locations":[{"start":{"line":90,"column":34},"end":{"line":90,"column":54}},{"start":{"line":90,"column":57},"end":{"line":90,"column":68}}],"line":90},"5":{"loc":{"start":{"line":95,"column":9},"end":{"line":95,"column":79}},"type":"binary-expr","locations":[{"start":{"line":95,"column":9},"end":{"line":95,"column":35}},{"start":{"line":95,"column":39},"end":{"line":95,"column":54}},{"start":{"line":95,"column":58},"end":{"line":95,"column":79}}],"line":95},"6":{"loc":{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},"type":"if","locations":[{"start":{"line":100,"column":2},"end":{"line":102,"column":3}},{"start":{},"end":{}}],"line":100},"7":{"loc":{"start":{"line":114,"column":2},"end":{"line":116,"column":3}},"type":"if","locations":[{"start":{"line":114,"column":2},"end":{"line":116,"column":3}},{"start":{},"end":{}}],"line":114},"8":{"loc":{"start":{"line":118,"column":29},"end":{"line":118,"column":72}},"type":"binary-expr","locations":[{"start":{"line":118,"column":29},"end":{"line":118,"column":39}},{"start":{"line":118,"column":43},"end":{"line":118,"column":72}}],"line":118},"9":{"loc":{"start":{"line":119,"column":21},"end":{"line":119,"column":54}},"type":"binary-expr","locations":[{"start":{"line":119,"column":21},"end":{"line":119,"column":28}},{"start":{"line":119,"column":32},"end":{"line":119,"column":54}}],"line":119},"10":{"loc":{"start":{"line":121,"column":2},"end":{"line":172,"column":3}},"type":"switch","locations":[{"start":{"line":122,"column":4},"end":{"line":133,"column":8}},{"start":{"line":135,"column":4},"end":{"line":146,"column":8}},{"start":{"line":148,"column":4},"end":{"line":171,"column":5}}],"line":121},"11":{"loc":{"start":{"line":156,"column":10},"end":{"line":164,"column":14}},"type":"binary-expr","locations":[{"start":{"line":156,"column":10},"end":{"line":156,"column":16}},{"start":{"line":157,"column":11},"end":{"line":157,"column":25}},{"start":{"line":158,"column":12},"end":{"line":164,"column":13}}],"line":156},"12":{"loc":{"start":{"line":177,"column":2},"end":{"line":179,"column":3}},"type":"if","locations":[{"start":{"line":177,"column":2},"end":{"line":179,"column":3}},{"start":{},"end":{}}],"line":177},"13":{"loc":{"start":{"line":178,"column":17},"end":{"line":178,"column":28}},"type":"binary-expr","locations":[{"start":{"line":178,"column":17},"end":{"line":178,"column":23}},{"start":{"line":178,"column":27},"end":{"line":178,"column":28}}],"line":178},"14":{"loc":{"start":{"line":187,"column":2},"end":{"line":189,"column":3}},"type":"if","locations":[{"start":{"line":187,"column":2},"end":{"line":189,"column":3}},{"start":{},"end":{}}],"line":187},"15":{"loc":{"start":{"line":193,"column":4},"end":{"line":193,"column":57}},"type":"cond-expr","locations":[{"start":{"line":193,"column":32},"end":{"line":193,"column":45}},{"start":{"line":193,"column":48},"end":{"line":193,"column":57}}],"line":193},"16":{"loc":{"start":{"line":195,"column":2},"end":{"line":198,"column":3}},"type":"if","locations":[{"start":{"line":195,"column":2},"end":{"line":198,"column":3}},{"start":{},"end":{}}],"line":195},"17":{"loc":{"start":{"line":205,"column":2},"end":{"line":208,"column":3}},"type":"if","locations":[{"start":{"line":205,"column":2},"end":{"line":208,"column":3}},{"start":{},"end":{}}],"line":205},"18":{"loc":{"start":{"line":205,"column":6},"end":{"line":205,"column":32}},"type":"binary-expr","locations":[{"start":{"line":205,"column":6},"end":{"line":205,"column":21}},{"start":{"line":205,"column":25},"end":{"line":205,"column":32}}],"line":205},"19":{"loc":{"start":{"line":227,"column":2},"end":{"line":333,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":333,"column":3}},{"start":{"line":248,"column":9},"end":{"line":333,"column":3}}],"line":227},"20":{"loc":{"start":{"line":228,"column":4},"end":{"line":244,"column":5}},"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":244,"column":5}},{"start":{},"end":{}}],"line":228},"21":{"loc":{"start":{"line":235,"column":8},"end":{"line":242,"column":9}},"type":"if","locations":[{"start":{"line":235,"column":8},"end":{"line":242,"column":9}},{"start":{},"end":{}}],"line":235},"22":{"loc":{"start":{"line":236,"column":10},"end":{"line":241,"column":11}},"type":"if","locations":[{"start":{"line":236,"column":10},"end":{"line":241,"column":11}},{"start":{"line":239,"column":17},"end":{"line":241,"column":11}}],"line":236},"23":{"loc":{"start":{"line":239,"column":17},"end":{"line":241,"column":11}},"type":"if","locations":[{"start":{"line":239,"column":17},"end":{"line":241,"column":11}},{"start":{},"end":{}}],"line":239},"24":{"loc":{"start":{"line":250,"column":4},"end":{"line":252,"column":5}},"type":"if","locations":[{"start":{"line":250,"column":4},"end":{"line":252,"column":5}},{"start":{},"end":{}}],"line":250},"25":{"loc":{"start":{"line":262,"column":6},"end":{"line":262,"column":74}},"type":"binary-expr","locations":[{"start":{"line":262,"column":6},"end":{"line":262,"column":32}},{"start":{"line":262,"column":36},"end":{"line":262,"column":74}}],"line":262},"26":{"loc":{"start":{"line":264,"column":6},"end":{"line":265,"column":54}},"type":"binary-expr","locations":[{"start":{"line":264,"column":6},"end":{"line":264,"column":43}},{"start":{"line":265,"column":6},"end":{"line":265,"column":54}}],"line":264},"27":{"loc":{"start":{"line":267,"column":6},"end":{"line":268,"column":57}},"type":"binary-expr","locations":[{"start":{"line":267,"column":6},"end":{"line":267,"column":46}},{"start":{"line":268,"column":6},"end":{"line":268,"column":57}}],"line":267},"28":{"loc":{"start":{"line":270,"column":6},"end":{"line":271,"column":47}},"type":"binary-expr","locations":[{"start":{"line":270,"column":6},"end":{"line":270,"column":35}},{"start":{"line":271,"column":6},"end":{"line":271,"column":47}}],"line":270},"29":{"loc":{"start":{"line":273,"column":6},"end":{"line":273,"column":66}},"type":"binary-expr","locations":[{"start":{"line":273,"column":6},"end":{"line":273,"column":28}},{"start":{"line":273,"column":32},"end":{"line":273,"column":66}}],"line":273},"30":{"loc":{"start":{"line":339,"column":2},"end":{"line":341,"column":3}},"type":"if","locations":[{"start":{"line":339,"column":2},"end":{"line":341,"column":3}},{"start":{},"end":{}}],"line":339},"31":{"loc":{"start":{"line":339,"column":6},"end":{"line":339,"column":49}},"type":"binary-expr","locations":[{"start":{"line":339,"column":6},"end":{"line":339,"column":27}},{"start":{"line":339,"column":31},"end":{"line":339,"column":49}}],"line":339},"32":{"loc":{"start":{"line":359,"column":2},"end":{"line":361,"column":3}},"type":"if","locations":[{"start":{"line":359,"column":2},"end":{"line":361,"column":3}},{"start":{},"end":{}}],"line":359},"33":{"loc":{"start":{"line":372,"column":2},"end":{"line":374,"column":3}},"type":"if","locations":[{"start":{"line":372,"column":2},"end":{"line":374,"column":3}},{"start":{},"end":{}}],"line":372},"34":{"loc":{"start":{"line":385,"column":6},"end":{"line":390,"column":7}},"type":"if","locations":[{"start":{"line":385,"column":6},"end":{"line":390,"column":7}},{"start":{},"end":{}}],"line":385},"35":{"loc":{"start":{"line":387,"column":8},"end":{"line":389,"column":9}},"type":"if","locations":[{"start":{"line":387,"column":8},"end":{"line":389,"column":9}},{"start":{},"end":{}}],"line":387},"36":{"loc":{"start":{"line":398,"column":2},"end":{"line":406,"column":3}},"type":"if","locations":[{"start":{"line":398,"column":2},"end":{"line":406,"column":3}},{"start":{},"end":{}}],"line":398},"37":{"loc":{"start":{"line":402,"column":6},"end":{"line":404,"column":7}},"type":"if","locations":[{"start":{"line":402,"column":6},"end":{"line":404,"column":7}},{"start":{},"end":{}}],"line":402},"38":{"loc":{"start":{"line":402,"column":10},"end":{"line":402,"column":51}},"type":"binary-expr","locations":[{"start":{"line":402,"column":10},"end":{"line":402,"column":25}},{"start":{"line":402,"column":29},"end":{"line":402,"column":51}}],"line":402},"39":{"loc":{"start":{"line":465,"column":22},"end":{"line":465,"column":55}},"type":"binary-expr","locations":[{"start":{"line":465,"column":22},"end":{"line":465,"column":38}},{"start":{"line":465,"column":42},"end":{"line":465,"column":55}}],"line":465},"40":{"loc":{"start":{"line":469,"column":2},"end":{"line":471,"column":3}},"type":"if","locations":[{"start":{"line":469,"column":2},"end":{"line":471,"column":3}},{"start":{},"end":{}}],"line":469},"41":{"loc":{"start":{"line":475,"column":4},"end":{"line":477,"column":5}},"type":"if","locations":[{"start":{"line":475,"column":4},"end":{"line":477,"column":5}},{"start":{},"end":{}}],"line":475},"42":{"loc":{"start":{"line":480,"column":4},"end":{"line":483,"column":5}},"type":"if","locations":[{"start":{"line":480,"column":4},"end":{"line":483,"column":5}},{"start":{},"end":{}}],"line":480},"43":{"loc":{"start":{"line":486,"column":4},"end":{"line":492,"column":5}},"type":"if","locations":[{"start":{"line":486,"column":4},"end":{"line":492,"column":5}},{"start":{"line":489,"column":11},"end":{"line":492,"column":5}}],"line":486},"44":{"loc":{"start":{"line":486,"column":8},"end":{"line":486,"column":39}},"type":"binary-expr","locations":[{"start":{"line":486,"column":8},"end":{"line":486,"column":25}},{"start":{"line":486,"column":29},"end":{"line":486,"column":39}}],"line":486},"45":{"loc":{"start":{"line":495,"column":2},"end":{"line":513,"column":3}},"type":"if","locations":[{"start":{"line":495,"column":2},"end":{"line":513,"column":3}},{"start":{},"end":{}}],"line":495},"46":{"loc":{"start":{"line":504,"column":6},"end":{"line":510,"column":7}},"type":"if","locations":[{"start":{"line":504,"column":6},"end":{"line":510,"column":7}},{"start":{},"end":{}}],"line":504},"47":{"loc":{"start":{"line":505,"column":8},"end":{"line":506,"column":79}},"type":"binary-expr","locations":[{"start":{"line":505,"column":8},"end":{"line":505,"column":14}},{"start":{"line":506,"column":9},"end":{"line":506,"column":36}},{"start":{"line":506,"column":40},"end":{"line":506,"column":78}}],"line":505}},"s":{"0":2,"1":0,"2":0,"3":0,"4":4,"5":3,"6":1,"7":0,"8":1,"9":4,"10":0,"11":9,"12":9,"13":1,"14":8,"15":8,"16":5,"17":5,"18":1,"19":4,"20":4,"21":4,"22":0,"23":0,"24":4,"25":4,"26":3,"27":3,"28":0,"29":7,"30":1,"31":6,"32":6,"33":6,"34":1,"35":1,"36":5,"37":4,"38":1,"39":1,"40":3,"41":3,"42":3,"43":3,"44":3,"45":3,"46":3,"47":3,"48":3,"49":1,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":1,"59":2,"60":2,"61":0,"62":2,"63":2,"64":2,"65":2,"66":2,"67":2,"68":2,"69":2,"70":2,"71":2,"72":2,"73":2,"74":2,"75":2,"76":2,"77":3,"78":3,"79":14,"80":11,"81":3,"82":3,"83":3,"84":5,"85":5,"86":4,"87":5,"88":1,"89":1,"90":1,"91":1,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":2,"141":0,"142":0,"143":0},"f":{"0":0,"1":4,"2":4,"3":0,"4":9,"5":5,"6":3,"7":7,"8":3,"9":14,"10":3,"11":5,"12":1,"13":0,"14":0},"b":{"0":[0],"1":[0,0],"2":[3,1],"3":[0,1],"4":[4,0],"5":[0,0,0],"6":[1,8],"7":[1,4],"8":[4,4],"9":[4,4],"10":[0,0,4],"11":[4,4,3],"12":[0,3],"13":[0,0],"14":[1,6],"15":[0,6],"16":[1,5],"17":[1,3],"18":[4,3],"19":[1,2],"20":[0,1],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,2],"25":[2,1],"26":[2,1],"27":[2,1],"28":[2,1],"29":[2,2],"30":[11,3],"31":[14,3],"32":[4,1],"33":[1,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"901a3b3f63c4defa37553b3d5545f070a7c656fa"} | ||
,"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/kit-config.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/kit-config.ts","statementMap":{"0":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"1":{"start":{"line":22,"column":4},"end":{"line":22,"column":30}},"2":{"start":{"line":24,"column":2},"end":{"line":26,"column":3}},"3":{"start":{"line":25,"column":4},"end":{"line":25,"column":27}},"4":{"start":{"line":27,"column":2},"end":{"line":29,"column":4}},"5":{"start":{"line":34,"column":4},"end":{"line":34,"column":70}},"6":{"start":{"line":36,"column":2},"end":{"line":40,"column":4}},"7":{"start":{"line":58,"column":20},"end":{"line":58,"column":34}},"8":{"start":{"line":59,"column":28},"end":{"line":61,"column":15}},"9":{"start":{"line":62,"column":23},"end":{"line":62,"column":46}},"10":{"start":{"line":64,"column":20},"end":{"line":64,"column":78}},"11":{"start":{"line":66,"column":2},"end":{"line":80,"column":5}},"12":{"start":{"line":67,"column":33},"end":{"line":70,"column":5}},"13":{"start":{"line":74,"column":4},"end":{"line":79,"column":6}}},"fnMap":{"0":{"name":"getTargetPlatforms","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":34}},"loc":{"start":{"line":20,"column":18},"end":{"line":30,"column":1}},"line":20},"1":{"name":"getDefaultBundleParameters","decl":{"start":{"line":32,"column":9},"end":{"line":32,"column":35}},"loc":{"start":{"line":32,"column":54},"end":{"line":41,"column":1}},"line":32},"2":{"name":"getCliPlatformBundleConfigs","decl":{"start":{"line":54,"column":16},"end":{"line":54,"column":43}},"loc":{"start":{"line":57,"column":29},"end":{"line":81,"column":1}},"line":57},"3":{"name":"(anonymous_3)","decl":{"start":{"line":66,"column":48},"end":{"line":66,"column":49}},"loc":{"start":{"line":66,"column":62},"end":{"line":80,"column":3}},"line":66}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":23,"column":3}},{"start":{},"end":{}}],"line":21},"1":{"loc":{"start":{"line":24,"column":2},"end":{"line":26,"column":3}},"type":"if","locations":[{"start":{"line":24,"column":2},"end":{"line":26,"column":3}},{"start":{},"end":{}}],"line":24},"2":{"loc":{"start":{"line":24,"column":6},"end":{"line":24,"column":51}},"type":"binary-expr","locations":[{"start":{"line":24,"column":6},"end":{"line":24,"column":21}},{"start":{"line":24,"column":25},"end":{"line":24,"column":51}}],"line":24},"3":{"loc":{"start":{"line":34,"column":4},"end":{"line":34,"column":70}},"type":"cond-expr","locations":[{"start":{"line":34,"column":49},"end":{"line":34,"column":59}},{"start":{"line":34,"column":62},"end":{"line":34,"column":70}}],"line":34},"4":{"loc":{"start":{"line":34,"column":4},"end":{"line":34,"column":46}},"type":"binary-expr","locations":[{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},{"start":{"line":34,"column":26},"end":{"line":34,"column":46}}],"line":34},"5":{"loc":{"start":{"line":59,"column":28},"end":{"line":61,"column":15}},"type":"cond-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":36}},{"start":{"line":61,"column":6},"end":{"line":61,"column":15}}],"line":59},"6":{"loc":{"start":{"line":62,"column":23},"end":{"line":62,"column":46}},"type":"binary-expr","locations":[{"start":{"line":62,"column":23},"end":{"line":62,"column":40}},{"start":{"line":62,"column":44},"end":{"line":62,"column":46}}],"line":62}},"s":{"0":10,"1":7,"2":3,"3":2,"4":1,"5":10,"6":10,"7":7,"8":7,"9":7,"10":7,"11":7,"12":10,"13":10},"f":{"0":10,"1":10,"2":7,"3":10},"b":{"0":[7,3],"1":[2,1],"2":[3,2],"3":[5,5],"4":[10,7],"5":[3,4],"6":[7,4]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fee4241adec89c9ab28f6dc426a9942e034f9246"} | ||
,"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts","statementMap":{"0":{"start":{"line":11,"column":2},"end":{"line":11,"column":52}},"1":{"start":{"line":33,"column":2},"end":{"line":33,"column":47}},"2":{"start":{"line":35,"column":2},"end":{"line":38,"column":5}},"3":{"start":{"line":40,"column":43},"end":{"line":44,"column":3}},"4":{"start":{"line":47,"column":2},"end":{"line":47,"column":56}},"5":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"6":{"start":{"line":49,"column":4},"end":{"line":49,"column":61}},"7":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"8":{"start":{"line":52,"column":4},"end":{"line":52,"column":42}},"9":{"start":{"line":56,"column":2},"end":{"line":56,"column":45}}},"fnMap":{"0":{"name":"ensureDir","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":18}},"loc":{"start":{"line":10,"column":36},"end":{"line":12,"column":1}},"line":10},"1":{"name":"metroBundle","decl":{"start":{"line":26,"column":22},"end":{"line":26,"column":33}},"loc":{"start":{"line":32,"column":17},"end":{"line":57,"column":1}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":17}},"type":"default-arg","locations":[{"start":{"line":31,"column":11},"end":{"line":31,"column":17}}],"line":31},"1":{"loc":{"start":{"line":37,"column":15},"end":{"line":37,"column":45}},"type":"binary-expr","locations":[{"start":{"line":37,"column":15},"end":{"line":37,"column":19}},{"start":{"line":37,"column":23},"end":{"line":37,"column":45}}],"line":37},"2":{"loc":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},{"start":{},"end":{}}],"line":48},"3":{"loc":{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},"type":"if","locations":[{"start":{"line":51,"column":2},"end":{"line":53,"column":3}},{"start":{},"end":{}}],"line":51}},"s":{"0":12,"1":4,"2":4,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":4},"f":{"0":12,"1":4},"b":{"0":[4],"1":[4,0],"2":[4,0],"3":[4,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c49f5f480fb0a2ae32acb144e9fa9291c3afa1ea"} | ||
,"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts","statementMap":{"0":{"start":{"line":21,"column":2},"end":{"line":30,"column":3}},"1":{"start":{"line":44,"column":27},"end":{"line":44,"column":54}},"2":{"start":{"line":45,"column":2},"end":{"line":49,"column":3}},"3":{"start":{"line":46,"column":4},"end":{"line":48,"column":5}},"4":{"start":{"line":47,"column":6},"end":{"line":47,"column":46}}},"fnMap":{"0":{"name":"applyBundleConfigOverrides","decl":{"start":{"line":39,"column":16},"end":{"line":39,"column":42}},"loc":{"start":{"line":43,"column":8},"end":{"line":50,"column":1}},"line":43}},"branchMap":{"0":{"loc":{"start":{"line":45,"column":2},"end":{"line":49,"column":3}},"type":"if","locations":[{"start":{"line":45,"column":2},"end":{"line":49,"column":3}},{"start":{},"end":{}}],"line":45}},"s":{"0":1,"1":10,"2":10,"3":9,"4":9},"f":{"0":10},"b":{"0":[9,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"d4a1910cf65b44037b47502cbfb60286de6de72e"} | ||
,"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/metro.ts","statementMap":{"0":{"start":{"line":11,"column":2},"end":{"line":11,"column":52}},"1":{"start":{"line":33,"column":2},"end":{"line":33,"column":47}},"2":{"start":{"line":35,"column":2},"end":{"line":45,"column":3}},"3":{"start":{"line":36,"column":4},"end":{"line":42,"column":5}},"4":{"start":{"line":37,"column":6},"end":{"line":41,"column":7}},"5":{"start":{"line":38,"column":8},"end":{"line":38,"column":47}},"6":{"start":{"line":40,"column":8},"end":{"line":40,"column":44}},"7":{"start":{"line":44,"column":4},"end":{"line":44,"column":35}},"8":{"start":{"line":47,"column":2},"end":{"line":47,"column":50}},"9":{"start":{"line":49,"column":43},"end":{"line":53,"column":3}},"10":{"start":{"line":56,"column":2},"end":{"line":56,"column":56}},"11":{"start":{"line":57,"column":2},"end":{"line":59,"column":3}},"12":{"start":{"line":58,"column":4},"end":{"line":58,"column":61}},"13":{"start":{"line":60,"column":2},"end":{"line":62,"column":3}},"14":{"start":{"line":61,"column":4},"end":{"line":61,"column":42}},"15":{"start":{"line":65,"column":2},"end":{"line":65,"column":45}}},"fnMap":{"0":{"name":"ensureDir","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":18}},"loc":{"start":{"line":10,"column":36},"end":{"line":12,"column":1}},"line":10},"1":{"name":"metroBundle","decl":{"start":{"line":26,"column":22},"end":{"line":26,"column":33}},"loc":{"start":{"line":32,"column":17},"end":{"line":66,"column":1}},"line":32}},"branchMap":{"0":{"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":17}},"type":"default-arg","locations":[{"start":{"line":31,"column":11},"end":{"line":31,"column":17}}],"line":31},"1":{"loc":{"start":{"line":35,"column":2},"end":{"line":45,"column":3}},"type":"if","locations":[{"start":{"line":35,"column":2},"end":{"line":45,"column":3}},{"start":{"line":43,"column":9},"end":{"line":45,"column":3}}],"line":35},"2":{"loc":{"start":{"line":35,"column":6},"end":{"line":35,"column":36}},"type":"binary-expr","locations":[{"start":{"line":35,"column":6},"end":{"line":35,"column":10}},{"start":{"line":35,"column":14},"end":{"line":35,"column":36}}],"line":35},"3":{"loc":{"start":{"line":36,"column":4},"end":{"line":42,"column":5}},"type":"if","locations":[{"start":{"line":36,"column":4},"end":{"line":42,"column":5}},{"start":{},"end":{}}],"line":36},"4":{"loc":{"start":{"line":37,"column":6},"end":{"line":41,"column":7}},"type":"if","locations":[{"start":{"line":37,"column":6},"end":{"line":41,"column":7}},{"start":{"line":39,"column":13},"end":{"line":41,"column":7}}],"line":37},"5":{"loc":{"start":{"line":57,"column":2},"end":{"line":59,"column":3}},"type":"if","locations":[{"start":{"line":57,"column":2},"end":{"line":59,"column":3}},{"start":{},"end":{}}],"line":57},"6":{"loc":{"start":{"line":60,"column":2},"end":{"line":62,"column":3}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":62,"column":3}},{"start":{},"end":{}}],"line":60}},"s":{"0":12,"1":4,"2":4,"3":0,"4":0,"5":0,"6":0,"7":4,"8":4,"9":4,"10":4,"11":4,"12":4,"13":4,"14":4,"15":4},"f":{"0":12,"1":4},"b":{"0":[4],"1":[0,4],"2":[4,0],"3":[0,0],"4":[0,0],"5":[4,0],"6":[4,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"01513a5524f010aac525ab1df8e01d642980560f"} | ||
,"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts": {"path":"/home/runner/work/rnx-kit/rnx-kit/packages/cli/src/bundle/overrides.ts","statementMap":{"0":{"start":{"line":22,"column":2},"end":{"line":31,"column":3}},"1":{"start":{"line":45,"column":27},"end":{"line":45,"column":54}},"2":{"start":{"line":46,"column":2},"end":{"line":50,"column":3}},"3":{"start":{"line":47,"column":4},"end":{"line":49,"column":5}},"4":{"start":{"line":48,"column":6},"end":{"line":48,"column":46}}},"fnMap":{"0":{"name":"applyBundleConfigOverrides","decl":{"start":{"line":40,"column":16},"end":{"line":40,"column":42}},"loc":{"start":{"line":44,"column":8},"end":{"line":51,"column":1}},"line":44}},"branchMap":{"0":{"loc":{"start":{"line":46,"column":2},"end":{"line":50,"column":3}},"type":"if","locations":[{"start":{"line":46,"column":2},"end":{"line":50,"column":3}},{"start":{},"end":{}}],"line":46}},"s":{"0":1,"1":10,"2":10,"3":9,"4":9},"f":{"0":10},"b":{"0":[9,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4e940eb3cd456bd9f37a05138f4e74336c55e113"} | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
const cliOptions_1 = require("./bundle/cliOptions"); | ||
const hermes_1 = require("./bundle/hermes"); | ||
const kit_config_1 = require("./bundle/kit-config"); | ||
@@ -16,2 +17,3 @@ const metro_1 = require("./bundle/metro"); | ||
...overrides_1.overridableCommonBundleOptions, | ||
"hermes", | ||
"treeShake", | ||
@@ -21,2 +23,6 @@ ]); | ||
await (0, metro_1.metroBundle)(metroConfig, bundleConfig, cliOptions.dev, cliOptions.minify); | ||
const { bundleOutput, hermes, sourcemapOutput } = bundleConfig; | ||
if (hermes) { | ||
(0, hermes_1.emitBytecode)(bundleOutput, sourcemapOutput, hermes === true ? {} : hermes); | ||
} | ||
} | ||
@@ -23,0 +29,0 @@ } |
@@ -49,6 +49,16 @@ "use strict"; | ||
(0, console_1.info)(`Bundling ${bundleConfig.platform}...`); | ||
(0, metro_config_1.customizeMetroConfig)(metroConfig, { | ||
...bundleConfig, | ||
treeShake: !dev && bundleConfig.treeShake, | ||
}); | ||
if (!dev && bundleConfig.treeShake) { | ||
if (minify != null) { | ||
if (typeof bundleConfig.treeShake === "object") { | ||
bundleConfig.treeShake.minify = minify; | ||
} | ||
else { | ||
bundleConfig.treeShake = { minify }; | ||
} | ||
} | ||
} | ||
else { | ||
bundleConfig.treeShake = false; | ||
} | ||
(0, metro_config_1.customizeMetroConfig)(metroConfig, bundleConfig); | ||
const metroBundleArgs = { | ||
@@ -55,0 +65,0 @@ ...bundleConfig, |
import type { CliPlatformBundleConfig } from "./types"; | ||
type BundleConfigOverrides = Partial<Pick<CliPlatformBundleConfig, "entryFile" | "bundleOutput" | "bundleEncoding" | "sourcemapOutput" | "sourcemapSourcesRoot" | "sourcemapUseAbsolutePath" | "assetsDest" | "treeShake" | "unstableTransformProfile" | "indexedRamBundle">>; | ||
type BundleConfigOverrides = Partial<Pick<CliPlatformBundleConfig, "entryFile" | "bundleOutput" | "bundleEncoding" | "sourcemapOutput" | "sourcemapSourcesRoot" | "sourcemapUseAbsolutePath" | "assetsDest" | "treeShake" | "unstableTransformProfile" | "indexedRamBundle" | "hermes">>; | ||
export declare const overridableCommonBundleOptions: readonly (keyof BundleConfigOverrides)[]; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "@rnx-kit/cli", | ||
"version": "0.16.16", | ||
"version": "0.16.17", | ||
"description": "Command-line interface for working with kit packages in your repo", | ||
@@ -23,3 +23,3 @@ "homepage": "https://github.com/microsoft/rnx-kit/tree/main/packages/cli#readme", | ||
"@rnx-kit/align-deps": "^2.2.2", | ||
"@rnx-kit/config": "^0.6.2", | ||
"@rnx-kit/config": "^0.6.6", | ||
"@rnx-kit/console": "^1.0.11", | ||
@@ -26,0 +26,0 @@ "@rnx-kit/metro-plugin-cyclic-dependencies-detector": "^1.1.1", |
@@ -78,4 +78,5 @@ # @rnx-kit/cli | ||
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | | ||
| entryFile | "index.js" | | ||
| bundleOutput | "index.<`platform`>.bundle" (Windows, Android), or "index.<`platform`>.jsbundle" (iOS, macOS) | | ||
| entryFile | `"index.js"` | | ||
| bundleOutput | `"index.<platform>.bundle"` (Windows, Android) or `"index.<platform>.jsbundle"` (iOS, macOS) | | ||
| hermes | `false` | | ||
| treeShake | `false` | | ||
@@ -82,0 +83,0 @@ | plugins | `["@rnx-kit/metro-plugin-cyclic-dependencies-detector", "@rnx-kit/metro-plugin-duplicates-checker", "@rnx-kit/metro-plugin-typescript"]` | |
import type { Config as CLIConfig } from "@react-native-community/cli-types"; | ||
import { loadMetroConfig } from "@rnx-kit/metro-service"; | ||
import { commonBundleCommandOptions } from "./bundle/cliOptions"; | ||
import { emitBytecode } from "./bundle/hermes"; | ||
import { getCliPlatformBundleConfigs } from "./bundle/kit-config"; | ||
@@ -31,2 +32,3 @@ import { metroBundle } from "./bundle/metro"; | ||
...overridableCommonBundleOptions, | ||
"hermes", | ||
"treeShake", | ||
@@ -42,2 +44,11 @@ ]); | ||
); | ||
const { bundleOutput, hermes, sourcemapOutput } = bundleConfig; | ||
if (hermes) { | ||
emitBytecode( | ||
bundleOutput, | ||
sourcemapOutput, | ||
hermes === true ? {} : hermes | ||
); | ||
} | ||
} | ||
@@ -44,0 +55,0 @@ } |
@@ -35,7 +35,16 @@ import { info } from "@rnx-kit/console"; | ||
customizeMetroConfig(metroConfig, { | ||
...bundleConfig, | ||
treeShake: !dev && bundleConfig.treeShake, | ||
}); | ||
if (!dev && bundleConfig.treeShake) { | ||
if (minify != null) { | ||
if (typeof bundleConfig.treeShake === "object") { | ||
bundleConfig.treeShake.minify = minify; | ||
} else { | ||
bundleConfig.treeShake = { minify }; | ||
} | ||
} | ||
} else { | ||
bundleConfig.treeShake = false; | ||
} | ||
customizeMetroConfig(metroConfig, bundleConfig); | ||
const metroBundleArgs: MetroBundleArgs = { | ||
@@ -42,0 +51,0 @@ ...bundleConfig, |
@@ -17,2 +17,3 @@ import { pickValues } from "@rnx-kit/tools-language/properties"; | ||
| "indexedRamBundle" | ||
| "hermes" | ||
> | ||
@@ -19,0 +20,0 @@ >; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
615843
154
6391
230
17
4
Updated@rnx-kit/config@^0.6.6