@vxrn/vite-plugin-metro 1.1.504 → 1.1.506
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/dist/cjs/babel-plugins/import-meta-env-plugin.cjs +65 -0
- package/dist/cjs/babel-plugins/import-meta-env-plugin.js +52 -0
- package/dist/cjs/babel-plugins/import-meta-env-plugin.js.map +6 -0
- package/dist/cjs/babel-plugins/import-meta-env-plugin.native.js +62 -0
- package/dist/cjs/babel-plugins/import-meta-env-plugin.native.js.map +6 -0
- package/dist/cjs/metro-config/getMetroBabelConfigFromViteConfig.cjs +47 -0
- package/dist/cjs/metro-config/getMetroBabelConfigFromViteConfig.js +40 -0
- package/dist/cjs/metro-config/getMetroBabelConfigFromViteConfig.js.map +6 -0
- package/dist/cjs/metro-config/getMetroBabelConfigFromViteConfig.native.js +53 -0
- package/dist/cjs/metro-config/getMetroBabelConfigFromViteConfig.native.js.map +6 -0
- package/dist/cjs/metro-config/getMetroConfigFromViteConfig.cjs +110 -0
- package/dist/cjs/metro-config/getMetroConfigFromViteConfig.js +96 -0
- package/dist/cjs/metro-config/getMetroConfigFromViteConfig.js.map +6 -0
- package/dist/cjs/metro-config/getMetroConfigFromViteConfig.native.js +102 -0
- package/dist/cjs/metro-config/getMetroConfigFromViteConfig.native.js.map +6 -0
- package/dist/cjs/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.cjs +48 -0
- package/dist/cjs/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.js +46 -0
- package/dist/cjs/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.js.map +6 -0
- package/dist/cjs/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.native.js +50 -0
- package/dist/cjs/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.native.js.map +6 -0
- package/dist/cjs/metro-config/types.cjs +16 -0
- package/dist/cjs/metro-config/types.js +14 -0
- package/dist/cjs/metro-config/types.js.map +6 -0
- package/dist/cjs/metro-config/types.native.js +15 -0
- package/dist/cjs/metro-config/types.native.js.map +6 -0
- package/dist/cjs/plugins/metroPlugin.cjs +8 -84
- package/dist/cjs/plugins/metroPlugin.js +6 -90
- package/dist/cjs/plugins/metroPlugin.js.map +1 -1
- package/dist/cjs/plugins/metroPlugin.native.js +6 -82
- package/dist/cjs/plugins/metroPlugin.native.js.map +2 -2
- package/dist/cjs/rn-commands/bundle/assetCatalogIOS.cjs +86 -0
- package/dist/cjs/rn-commands/bundle/assetCatalogIOS.js +75 -0
- package/dist/cjs/rn-commands/bundle/assetCatalogIOS.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/assetCatalogIOS.native.js +114 -0
- package/dist/cjs/rn-commands/bundle/assetCatalogIOS.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/assetPathUtils.cjs +63 -0
- package/dist/cjs/rn-commands/bundle/assetPathUtils.js +62 -0
- package/dist/cjs/rn-commands/bundle/assetPathUtils.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/assetPathUtils.native.js +70 -0
- package/dist/cjs/rn-commands/bundle/assetPathUtils.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/buildBundle.cjs +50 -0
- package/dist/cjs/rn-commands/bundle/buildBundle.js +47 -0
- package/dist/cjs/rn-commands/bundle/buildBundle.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/buildBundle.native.js +46 -0
- package/dist/cjs/rn-commands/bundle/buildBundle.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/buildBundleWithConfig.cjs +76 -0
- package/dist/cjs/rn-commands/bundle/buildBundleWithConfig.js +66 -0
- package/dist/cjs/rn-commands/bundle/buildBundleWithConfig.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/buildBundleWithConfig.native.js +69 -0
- package/dist/cjs/rn-commands/bundle/buildBundleWithConfig.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/filterPlatformAssetScales.cjs +43 -0
- package/dist/cjs/rn-commands/bundle/filterPlatformAssetScales.js +40 -0
- package/dist/cjs/rn-commands/bundle/filterPlatformAssetScales.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/filterPlatformAssetScales.native.js +60 -0
- package/dist/cjs/rn-commands/bundle/filterPlatformAssetScales.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathAndroid.cjs +44 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathAndroid.js +34 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathAndroid.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathAndroid.native.js +35 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathAndroid.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathIOS.cjs +47 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathIOS.js +40 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathIOS.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathIOS.native.js +41 -0
- package/dist/cjs/rn-commands/bundle/getAssetDestPathIOS.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getBuildBundleFn.cjs +39 -0
- package/dist/cjs/rn-commands/bundle/getBuildBundleFn.js +37 -0
- package/dist/cjs/rn-commands/bundle/getBuildBundleFn.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/getBuildBundleFn.native.js +45 -0
- package/dist/cjs/rn-commands/bundle/getBuildBundleFn.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/index.cjs +28 -0
- package/dist/cjs/rn-commands/bundle/index.js +22 -0
- package/dist/cjs/rn-commands/bundle/index.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/index.native.js +28 -0
- package/dist/cjs/rn-commands/bundle/index.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/saveAssets.cjs +103 -0
- package/dist/cjs/rn-commands/bundle/saveAssets.js +96 -0
- package/dist/cjs/rn-commands/bundle/saveAssets.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/saveAssets.native.js +107 -0
- package/dist/cjs/rn-commands/bundle/saveAssets.native.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/types.cjs +16 -0
- package/dist/cjs/rn-commands/bundle/types.js +14 -0
- package/dist/cjs/rn-commands/bundle/types.js.map +6 -0
- package/dist/cjs/rn-commands/bundle/types.native.js +15 -0
- package/dist/cjs/rn-commands/bundle/types.native.js.map +6 -0
- package/dist/cjs/rn-commands/index.cjs +37 -0
- package/dist/cjs/rn-commands/index.js +29 -0
- package/dist/cjs/rn-commands/index.js.map +6 -0
- package/dist/cjs/rn-commands/index.native.js +34 -0
- package/dist/cjs/rn-commands/index.native.js.map +6 -0
- package/dist/cjs/transformer/babel-transformer.cjs +5 -1
- package/dist/cjs/transformer/babel-transformer.js +8 -1
- package/dist/cjs/transformer/babel-transformer.js.map +1 -1
- package/dist/cjs/transformer/babel-transformer.native.js +6 -1
- package/dist/cjs/transformer/babel-transformer.native.js.map +2 -2
- package/dist/cjs/transformer/types.cjs +16 -0
- package/dist/cjs/transformer/types.js +14 -0
- package/dist/cjs/transformer/types.js.map +6 -0
- package/dist/cjs/transformer/types.native.js +15 -0
- package/dist/cjs/transformer/types.native.js.map +6 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.js +29 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.js.map +6 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.mjs +30 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.mjs.map +1 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.native.js +38 -0
- package/dist/esm/babel-plugins/import-meta-env-plugin.native.js.map +1 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.js +24 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.js.map +6 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.mjs +24 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.mjs.map +1 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.native.js +27 -0
- package/dist/esm/metro-config/getMetroBabelConfigFromViteConfig.native.js.map +1 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.js +82 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.js.map +6 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.mjs +87 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.mjs.map +1 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.native.js +92 -0
- package/dist/esm/metro-config/getMetroConfigFromViteConfig.native.js.map +1 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.js +30 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.js.map +6 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.mjs +25 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.mjs.map +1 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.native.js +26 -0
- package/dist/esm/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.native.js.map +1 -0
- package/dist/esm/metro-config/types.js +1 -0
- package/dist/esm/metro-config/types.js.map +6 -0
- package/dist/esm/metro-config/types.mjs +2 -0
- package/dist/esm/metro-config/types.mjs.map +1 -0
- package/dist/esm/metro-config/types.native.js +2 -0
- package/dist/esm/metro-config/types.native.js.map +1 -0
- package/dist/esm/plugins/metroPlugin.js +8 -92
- package/dist/esm/plugins/metroPlugin.js.map +1 -1
- package/dist/esm/plugins/metroPlugin.mjs +9 -85
- package/dist/esm/plugins/metroPlugin.mjs.map +1 -1
- package/dist/esm/plugins/metroPlugin.native.js +9 -91
- package/dist/esm/plugins/metroPlugin.native.js.map +1 -1
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.js +53 -0
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.js.map +6 -0
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.mjs +49 -0
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.native.js +83 -0
- package/dist/esm/rn-commands/bundle/assetCatalogIOS.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.js +46 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.js.map +6 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.mjs +40 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.native.js +42 -0
- package/dist/esm/rn-commands/bundle/assetPathUtils.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/buildBundle.js +34 -0
- package/dist/esm/rn-commands/bundle/buildBundle.js.map +6 -0
- package/dist/esm/rn-commands/bundle/buildBundle.mjs +27 -0
- package/dist/esm/rn-commands/bundle/buildBundle.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/buildBundle.native.js +28 -0
- package/dist/esm/rn-commands/bundle/buildBundle.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.js +46 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.js.map +6 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.mjs +42 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.native.js +46 -0
- package/dist/esm/rn-commands/bundle/buildBundleWithConfig.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.js +24 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.js.map +6 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.mjs +20 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.native.js +38 -0
- package/dist/esm/rn-commands/bundle/filterPlatformAssetScales.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.js +11 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.js.map +6 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.mjs +10 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.native.js +10 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathAndroid.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.js +16 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.js.map +6 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.mjs +13 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.native.js +13 -0
- package/dist/esm/rn-commands/bundle/getAssetDestPathIOS.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.js +22 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.js.map +6 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.mjs +16 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.native.js +20 -0
- package/dist/esm/rn-commands/bundle/getBuildBundleFn.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/index.js +7 -0
- package/dist/esm/rn-commands/bundle/index.js.map +6 -0
- package/dist/esm/rn-commands/bundle/index.mjs +4 -0
- package/dist/esm/rn-commands/bundle/index.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/index.native.js +4 -0
- package/dist/esm/rn-commands/bundle/index.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/saveAssets.js +77 -0
- package/dist/esm/rn-commands/bundle/saveAssets.js.map +6 -0
- package/dist/esm/rn-commands/bundle/saveAssets.mjs +69 -0
- package/dist/esm/rn-commands/bundle/saveAssets.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/saveAssets.native.js +86 -0
- package/dist/esm/rn-commands/bundle/saveAssets.native.js.map +1 -0
- package/dist/esm/rn-commands/bundle/types.js +1 -0
- package/dist/esm/rn-commands/bundle/types.js.map +6 -0
- package/dist/esm/rn-commands/bundle/types.mjs +2 -0
- package/dist/esm/rn-commands/bundle/types.mjs.map +1 -0
- package/dist/esm/rn-commands/bundle/types.native.js +2 -0
- package/dist/esm/rn-commands/bundle/types.native.js.map +1 -0
- package/dist/esm/rn-commands/index.js +5 -0
- package/dist/esm/rn-commands/index.js.map +6 -0
- package/dist/esm/rn-commands/index.mjs +3 -0
- package/dist/esm/rn-commands/index.mjs.map +1 -0
- package/dist/esm/rn-commands/index.native.js +3 -0
- package/dist/esm/rn-commands/index.native.js.map +1 -0
- package/dist/esm/transformer/babel-transformer.js +8 -1
- package/dist/esm/transformer/babel-transformer.js.map +1 -1
- package/dist/esm/transformer/babel-transformer.mjs +5 -1
- package/dist/esm/transformer/babel-transformer.mjs.map +1 -1
- package/dist/esm/transformer/babel-transformer.native.js +6 -2
- package/dist/esm/transformer/babel-transformer.native.js.map +1 -1
- package/dist/esm/transformer/types.js +1 -0
- package/dist/esm/transformer/types.js.map +6 -0
- package/dist/esm/transformer/types.mjs +2 -0
- package/dist/esm/transformer/types.mjs.map +1 -0
- package/dist/esm/transformer/types.native.js +2 -0
- package/dist/esm/transformer/types.native.js.map +1 -0
- package/package.json +19 -4
- package/src/babel-plugins/import-meta-env-plugin.ts +56 -0
- package/src/metro-config/getMetroBabelConfigFromViteConfig.ts +50 -0
- package/src/metro-config/getMetroConfigFromViteConfig.ts +144 -0
- package/src/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.ts +44 -0
- package/src/metro-config/types.ts +9 -0
- package/src/plugins/metroPlugin.ts +13 -144
- package/src/rn-commands/bundle/README.md +2 -0
- package/src/rn-commands/bundle/assetCatalogIOS.ts +73 -0
- package/src/rn-commands/bundle/assetPathUtils.ts +76 -0
- package/src/rn-commands/bundle/buildBundle.ts +57 -0
- package/src/rn-commands/bundle/buildBundleWithConfig.ts +82 -0
- package/src/rn-commands/bundle/filterPlatformAssetScales.ts +41 -0
- package/src/rn-commands/bundle/getAssetDestPathAndroid.ts +19 -0
- package/src/rn-commands/bundle/getAssetDestPathIOS.ts +24 -0
- package/src/rn-commands/bundle/getBuildBundleFn.ts +31 -0
- package/src/rn-commands/bundle/index.ts +2 -0
- package/src/rn-commands/bundle/saveAssets.ts +114 -0
- package/src/rn-commands/bundle/types.ts +22 -0
- package/src/rn-commands/index.ts +1 -0
- package/src/transformer/babel-transformer.ts +18 -3
- package/src/transformer/types.ts +18 -0
- package/types/babel-plugins/import-meta-env-plugin.d.ts +7 -0
- package/types/babel-plugins/import-meta-env-plugin.d.ts.map +1 -0
- package/types/metro-config/getMetroBabelConfigFromViteConfig.d.ts +4 -0
- package/types/metro-config/getMetroBabelConfigFromViteConfig.d.ts.map +1 -0
- package/types/metro-config/getMetroConfigFromViteConfig.d.ts +5 -0
- package/types/metro-config/getMetroConfigFromViteConfig.d.ts.map +1 -0
- package/types/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.d.ts +5 -0
- package/types/metro-config/patchMetroServerWithViteConfigAndMetroPluginOptions.d.ts.map +1 -0
- package/types/metro-config/types.d.ts +9 -0
- package/types/metro-config/types.d.ts.map +1 -0
- package/types/plugins/metroPlugin.d.ts +1 -1
- package/types/plugins/metroPlugin.d.ts.map +1 -1
- package/types/rn-commands/bundle/assetCatalogIOS.d.ts +21 -0
- package/types/rn-commands/bundle/assetCatalogIOS.d.ts.map +1 -0
- package/types/rn-commands/bundle/assetPathUtils.d.ts +27 -0
- package/types/rn-commands/bundle/assetPathUtils.d.ts.map +1 -0
- package/types/rn-commands/bundle/buildBundle.d.ts +8 -0
- package/types/rn-commands/bundle/buildBundle.d.ts.map +1 -0
- package/types/rn-commands/bundle/buildBundleWithConfig.d.ts +9 -0
- package/types/rn-commands/bundle/buildBundleWithConfig.d.ts.map +1 -0
- package/types/rn-commands/bundle/filterPlatformAssetScales.d.ts +9 -0
- package/types/rn-commands/bundle/filterPlatformAssetScales.d.ts.map +1 -0
- package/types/rn-commands/bundle/getAssetDestPathAndroid.d.ts +10 -0
- package/types/rn-commands/bundle/getAssetDestPathAndroid.d.ts.map +1 -0
- package/types/rn-commands/bundle/getAssetDestPathIOS.d.ts +10 -0
- package/types/rn-commands/bundle/getAssetDestPathIOS.d.ts.map +1 -0
- package/types/rn-commands/bundle/getBuildBundleFn.d.ts +7 -0
- package/types/rn-commands/bundle/getBuildBundleFn.d.ts.map +1 -0
- package/types/rn-commands/bundle/index.d.ts +3 -0
- package/types/rn-commands/bundle/index.d.ts.map +1 -0
- package/types/rn-commands/bundle/saveAssets.d.ts +4 -0
- package/types/rn-commands/bundle/saveAssets.d.ts.map +1 -0
- package/types/rn-commands/bundle/types.d.ts +23 -0
- package/types/rn-commands/bundle/types.d.ts.map +1 -0
- package/types/rn-commands/index.d.ts +2 -0
- package/types/rn-commands/index.d.ts.map +1 -0
- package/types/transformer/babel-transformer.d.ts.map +1 -1
- package/types/transformer/types.d.ts +16 -0
- package/types/transformer/types.d.ts.map +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var getAssetDestPathAndroid_exports = {};
|
|
24
|
+
__export(getAssetDestPathAndroid_exports, {
|
|
25
|
+
default: () => getAssetDestPathAndroid_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(getAssetDestPathAndroid_exports);
|
|
28
|
+
var import_assetPathUtils = __toESM(require("./assetPathUtils"), 1), import_node_path = __toESM(require("node:path"), 1);
|
|
29
|
+
function getAssetDestPathAndroid(asset, scale) {
|
|
30
|
+
const androidFolder = import_assetPathUtils.default.getAndroidResourceFolderName(asset, scale), fileName = import_assetPathUtils.default.getResourceIdentifier(asset);
|
|
31
|
+
return import_node_path.default.join(androidFolder, `${fileName}.${asset.type}`);
|
|
32
|
+
}
|
|
33
|
+
var getAssetDestPathAndroid_default = getAssetDestPathAndroid;
|
|
34
|
+
//# sourceMappingURL=getAssetDestPathAndroid.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getAssetDestPathAndroid.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,4BAA2B,yCAC3B,mBAAiB;AAEjB,SAAS,wBAAwB,OAAsB,OAAuB;AAC5E,QAAM,gBAAgB,sBAAAA,QAAe,6BAA6B,OAAO,KAAK,GACxE,WAAW,sBAAAA,QAAe,sBAAsB,KAAK;AAC3D,SAAO,iBAAAC,QAAK,KAAK,eAAe,GAAG,QAAQ,IAAI,MAAM,IAAI,EAAE;AAC7D;AAEA,IAAO,kCAAQ;",
|
|
5
|
+
"names": ["assetPathUtils", "path"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var getAssetDestPathAndroid_exports = {};
|
|
25
|
+
__export(getAssetDestPathAndroid_exports, {
|
|
26
|
+
default: () => getAssetDestPathAndroid_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(getAssetDestPathAndroid_exports);
|
|
29
|
+
var import_assetPathUtils = __toESM(require("./assetPathUtils"), 1), import_node_path = __toESM(require("node:path"), 1);
|
|
30
|
+
function getAssetDestPathAndroid(asset, scale) {
|
|
31
|
+
var androidFolder = import_assetPathUtils.default.getAndroidResourceFolderName(asset, scale), fileName = import_assetPathUtils.default.getResourceIdentifier(asset);
|
|
32
|
+
return import_node_path.default.join(androidFolder, `${fileName}.${asset.type}`);
|
|
33
|
+
}
|
|
34
|
+
var getAssetDestPathAndroid_default = getAssetDestPathAndroid;
|
|
35
|
+
//# sourceMappingURL=getAssetDestPathAndroid.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getAssetDestPathAndroid.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AASA,4BAA2B,yCAC3B,mBAAiB;AAEjB,SAASA,wBAAwBC,OAAsBC,OAAa;AAClE,MAAMC,gBAAgBC,sBAAAA,QAAeC,6BAA6BJ,OAAOC,KAAAA,GACnEI,WAAWF,sBAAAA,QAAeG,sBAAsBN,KAAAA;AACtD,SAAOO,iBAAAA,QAAKC,KAAKN,eAAe,GAAGG,QAAAA,IAAYL,MAAMS,IAAI,EAAE;AAC7D;AAEA,IAAA,kCAAeV;",
|
|
5
|
+
"names": ["getAssetDestPathAndroid", "asset", "scale", "androidFolder", "assetPathUtils", "getAndroidResourceFolderName", "fileName", "getResourceIdentifier", "path", "join", "type"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
32
|
+
var getAssetDestPathIOS_exports = {};
|
|
33
|
+
__export(getAssetDestPathIOS_exports, {
|
|
34
|
+
default: () => getAssetDestPathIOS_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(getAssetDestPathIOS_exports);
|
|
37
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
38
|
+
function getAssetDestPathIOS(asset, scale) {
|
|
39
|
+
const suffix = scale === 1 ? "" : `@${scale}x`,
|
|
40
|
+
fileName = `${asset.name + suffix}.${asset.type}`;
|
|
41
|
+
return import_node_path.default.join(
|
|
42
|
+
// Assets can have relative paths outside of the project root.
|
|
43
|
+
// Replace `../` with `_` to make sure they don't end up outside of
|
|
44
|
+
// the expected assets directory.
|
|
45
|
+
asset.httpServerLocation.substr(1).replace(/\.\.\//g, "_"), fileName);
|
|
46
|
+
}
|
|
47
|
+
var getAssetDestPathIOS_default = getAssetDestPathIOS;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
+
mod
|
|
22
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
+
var getAssetDestPathIOS_exports = {};
|
|
24
|
+
__export(getAssetDestPathIOS_exports, {
|
|
25
|
+
default: () => getAssetDestPathIOS_default
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(getAssetDestPathIOS_exports);
|
|
28
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
29
|
+
function getAssetDestPathIOS(asset, scale) {
|
|
30
|
+
const suffix = scale === 1 ? "" : `@${scale}x`, fileName = `${asset.name + suffix}.${asset.type}`;
|
|
31
|
+
return import_node_path.default.join(
|
|
32
|
+
// Assets can have relative paths outside of the project root.
|
|
33
|
+
// Replace `../` with `_` to make sure they don't end up outside of
|
|
34
|
+
// the expected assets directory.
|
|
35
|
+
asset.httpServerLocation.substr(1).replace(/\.\.\//g, "_"),
|
|
36
|
+
fileName
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
var getAssetDestPathIOS_default = getAssetDestPathIOS;
|
|
40
|
+
//# sourceMappingURL=getAssetDestPathIOS.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getAssetDestPathIOS.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,uBAAiB;AAEjB,SAAS,oBAAoB,OAAsB,OAAuB;AACxE,QAAM,SAAS,UAAU,IAAI,KAAK,IAAI,KAAK,KACrC,WAAW,GAAG,MAAM,OAAO,MAAM,IAAI,MAAM,IAAI;AACrD,SAAO,iBAAAA,QAAK;AAAA;AAAA;AAAA;AAAA,IAIV,MAAM,mBAAmB,OAAO,CAAC,EAAE,QAAQ,WAAW,GAAG;AAAA,IACzD;AAAA,EACF;AACF;AAEA,IAAO,8BAAQ;",
|
|
5
|
+
"names": ["path"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
+
var getAssetDestPathIOS_exports = {};
|
|
25
|
+
__export(getAssetDestPathIOS_exports, {
|
|
26
|
+
default: () => getAssetDestPathIOS_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(getAssetDestPathIOS_exports);
|
|
29
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
30
|
+
function getAssetDestPathIOS(asset, scale) {
|
|
31
|
+
var suffix = scale === 1 ? "" : `@${scale}x`, fileName = `${asset.name + suffix}.${asset.type}`;
|
|
32
|
+
return import_node_path.default.join(
|
|
33
|
+
// Assets can have relative paths outside of the project root.
|
|
34
|
+
// Replace `../` with `_` to make sure they don't end up outside of
|
|
35
|
+
// the expected assets directory.
|
|
36
|
+
asset.httpServerLocation.substr(1).replace(/\.\.\//g, "_"),
|
|
37
|
+
fileName
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
var getAssetDestPathIOS_default = getAssetDestPathIOS;
|
|
41
|
+
//# sourceMappingURL=getAssetDestPathIOS.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getAssetDestPathIOS.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AASA,uBAAiB;AAEjB,SAASA,oBAAoBC,OAAsBC,OAAa;AAC9D,MAAMC,SAASD,UAAU,IAAI,KAAK,IAAIA,KAAAA,KAChCE,WAAW,GAAGH,MAAMI,OAAOF,MAAAA,IAAUF,MAAMK,IAAI;AACrD,SAAOC,iBAAAA,QAAKC;;;;IAIVP,MAAMQ,mBAAmBC,OAAO,CAAA,EAAGC,QAAQ,WAAW,GAAA;IACtDP;EAAAA;AAEJ;AAEA,IAAA,8BAAeJ;",
|
|
5
|
+
"names": ["getAssetDestPathIOS", "asset", "scale", "suffix", "fileName", "name", "type", "path", "join", "httpServerLocation", "substr", "replace"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var getBuildBundleFn_exports = {};
|
|
22
|
+
__export(getBuildBundleFn_exports, {
|
|
23
|
+
getBuildBundleFn: () => getBuildBundleFn
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(getBuildBundleFn_exports);
|
|
26
|
+
var import_vite = require("vite"),
|
|
27
|
+
import_buildBundle = require("./buildBundle.cjs");
|
|
28
|
+
async function getBuildBundleFn() {
|
|
29
|
+
const viteConfig = await (0, import_vite.resolveConfig)({
|
|
30
|
+
// configFile,
|
|
31
|
+
// configLoader,
|
|
32
|
+
// envFile,
|
|
33
|
+
// forceOptimizeDeps,
|
|
34
|
+
}, "build", "production");
|
|
35
|
+
return globalThis.__viteMetroPluginOptions__ ? import_buildBundle.buildBundle.bind({
|
|
36
|
+
viteConfig,
|
|
37
|
+
metroPluginOptions: globalThis.__viteMetroPluginOptions__
|
|
38
|
+
}) : null;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var getBuildBundleFn_exports = {};
|
|
16
|
+
__export(getBuildBundleFn_exports, {
|
|
17
|
+
getBuildBundleFn: () => getBuildBundleFn
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(getBuildBundleFn_exports);
|
|
20
|
+
var import_vite = require("vite"), import_buildBundle = require("./buildBundle");
|
|
21
|
+
async function getBuildBundleFn() {
|
|
22
|
+
const viteConfig = await (0, import_vite.resolveConfig)(
|
|
23
|
+
{
|
|
24
|
+
// configFile,
|
|
25
|
+
// configLoader,
|
|
26
|
+
// envFile,
|
|
27
|
+
// forceOptimizeDeps,
|
|
28
|
+
},
|
|
29
|
+
"build",
|
|
30
|
+
"production"
|
|
31
|
+
);
|
|
32
|
+
return globalThis.__viteMetroPluginOptions__ ? import_buildBundle.buildBundle.bind({
|
|
33
|
+
viteConfig,
|
|
34
|
+
metroPluginOptions: globalThis.__viteMetroPluginOptions__
|
|
35
|
+
}) : null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=getBuildBundleFn.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getBuildBundleFn.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B,iBAC9B,qBAA4B;AAO5B,eAAsB,mBAAmB;AACvC,QAAM,aAAa,UAAM;AAAA,IACvB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAGA,SAAI,WAAW,6BACY,+BAAY,KAAK;AAAA,IACxC;AAAA,IACA,oBAAoB,WAAW;AAAA,EACjC,CAAC,IAII;AACT;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var getBuildBundleFn_exports = {};
|
|
17
|
+
__export(getBuildBundleFn_exports, {
|
|
18
|
+
getBuildBundleFn: () => getBuildBundleFn
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(getBuildBundleFn_exports);
|
|
21
|
+
var import_vite = require("vite"), import_buildBundle = require("./buildBundle");
|
|
22
|
+
async function getBuildBundleFn() {
|
|
23
|
+
var viteConfig = await (0, import_vite.resolveConfig)(
|
|
24
|
+
{},
|
|
25
|
+
// configFile,
|
|
26
|
+
// configLoader,
|
|
27
|
+
// envFile,
|
|
28
|
+
// forceOptimizeDeps,
|
|
29
|
+
"build",
|
|
30
|
+
"production"
|
|
31
|
+
);
|
|
32
|
+
if (globalThis.__viteMetroPluginOptions__) {
|
|
33
|
+
var metroBuildBundle = import_buildBundle.buildBundle.bind({
|
|
34
|
+
viteConfig,
|
|
35
|
+
metroPluginOptions: globalThis.__viteMetroPluginOptions__
|
|
36
|
+
});
|
|
37
|
+
return metroBuildBundle;
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
getBuildBundleFn
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=getBuildBundleFn.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/rn-commands/bundle/getBuildBundleFn.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;kBAA8B,iBAC9B,qBAA4B;AAO5B,eAAsBA,mBAAAA;AACpB,MAAMC,aAAa,UAAMC;IACvB,CAKA;;;;;IACA;IACA;EAAA;AAIF,MAAIC,WAAW,4BAA+B;AAC5C,QAAMC,mBAAmBC,+BAAYC,KAAK;MACxCL;MACAM,oBAAoBJ,WAAW;IACjC,CAAA;AACA,WAAOC;EACT;AAEA,SAAO;AACT;",
|
|
5
|
+
"names": ["getBuildBundleFn", "viteConfig", "resolveConfig", "globalThis", "metroBuildBundle", "buildBundle", "bind", "metroPluginOptions"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var bundle_exports = {};
|
|
22
|
+
__export(bundle_exports, {
|
|
23
|
+
buildBundle: () => import_buildBundle.buildBundle,
|
|
24
|
+
getBuildBundleFn: () => import_getBuildBundleFn.getBuildBundleFn
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(bundle_exports);
|
|
27
|
+
var import_buildBundle = require("./buildBundle.cjs"),
|
|
28
|
+
import_getBuildBundleFn = require("./getBuildBundleFn.cjs");
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var bundle_exports = {};
|
|
16
|
+
__export(bundle_exports, {
|
|
17
|
+
buildBundle: () => import_buildBundle.buildBundle,
|
|
18
|
+
getBuildBundleFn: () => import_getBuildBundleFn.getBuildBundleFn
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(bundle_exports);
|
|
21
|
+
var import_buildBundle = require("./buildBundle"), import_getBuildBundleFn = require("./getBuildBundleFn");
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var bundle_exports = {};
|
|
17
|
+
__export(bundle_exports, {
|
|
18
|
+
buildBundle: () => import_buildBundle.buildBundle,
|
|
19
|
+
getBuildBundleFn: () => import_getBuildBundleFn.getBuildBundleFn
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(bundle_exports);
|
|
22
|
+
var import_buildBundle = require("./buildBundle"), import_getBuildBundleFn = require("./getBuildBundleFn");
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
25
|
+
buildBundle,
|
|
26
|
+
getBuildBundleFn
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
32
|
+
var saveAssets_exports = {};
|
|
33
|
+
__export(saveAssets_exports, {
|
|
34
|
+
default: () => saveAssets_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(saveAssets_exports);
|
|
37
|
+
var import_assetCatalogIOS = require("./assetCatalogIOS.cjs"),
|
|
38
|
+
import_filterPlatformAssetScales = __toESM(require("./filterPlatformAssetScales.cjs"), 1),
|
|
39
|
+
import_getAssetDestPathAndroid = __toESM(require("./getAssetDestPathAndroid.cjs"), 1),
|
|
40
|
+
import_getAssetDestPathIOS = __toESM(require("./getAssetDestPathIOS.cjs"), 1),
|
|
41
|
+
import_node_fs = __toESM(require("node:fs"), 1),
|
|
42
|
+
import_node_path = __toESM(require("node:path"), 1);
|
|
43
|
+
async function saveAssets(assets, platform, assetsDest, assetCatalogDest) {
|
|
44
|
+
if (assetsDest == null) {
|
|
45
|
+
console.warn("Assets destination folder is not set, skipping...");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const filesToCopy = {},
|
|
49
|
+
getAssetDestPath = platform === "android" ? import_getAssetDestPathAndroid.default : import_getAssetDestPathIOS.default,
|
|
50
|
+
addAssetToCopy = asset => {
|
|
51
|
+
const validScales = new Set((0, import_filterPlatformAssetScales.default)(platform, asset.scales));
|
|
52
|
+
asset.scales.forEach((scale, idx) => {
|
|
53
|
+
if (!validScales.has(scale)) return;
|
|
54
|
+
const src = asset.files[idx],
|
|
55
|
+
dest = import_node_path.default.join(assetsDest, getAssetDestPath(asset, scale));
|
|
56
|
+
filesToCopy[src] = dest;
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
if (platform === "ios" && assetCatalogDest != null) {
|
|
60
|
+
const catalogDir = import_node_path.default.join(assetCatalogDest, "RNAssets.xcassets");
|
|
61
|
+
if (!import_node_fs.default.existsSync(catalogDir)) {
|
|
62
|
+
console.error(`Could not find asset catalog 'RNAssets.xcassets' in ${assetCatalogDest}. Make sure to create it if it does not exist.`);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
console.info("Adding images to asset catalog", catalogDir), (0, import_assetCatalogIOS.cleanAssetCatalog)(catalogDir);
|
|
66
|
+
for (const asset of assets) if ((0, import_assetCatalogIOS.isCatalogAsset)(asset)) {
|
|
67
|
+
const imageSet = (0, import_assetCatalogIOS.getImageSet)(catalogDir, asset, (0, import_filterPlatformAssetScales.default)(platform, asset.scales));
|
|
68
|
+
(0, import_assetCatalogIOS.writeImageSet)(imageSet);
|
|
69
|
+
} else addAssetToCopy(asset);
|
|
70
|
+
console.info("Done adding images to asset catalog");
|
|
71
|
+
} else assets.forEach(addAssetToCopy);
|
|
72
|
+
return copyAll(filesToCopy);
|
|
73
|
+
}
|
|
74
|
+
function copyAll(filesToCopy) {
|
|
75
|
+
const queue = Object.keys(filesToCopy);
|
|
76
|
+
return queue.length === 0 ? Promise.resolve() : (console.info(`Copying ${queue.length} asset files`), new Promise((resolve, reject) => {
|
|
77
|
+
const copyNext = error => {
|
|
78
|
+
if (error) {
|
|
79
|
+
reject(error);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (queue.length === 0) console.info("Done copying assets"), resolve();else {
|
|
83
|
+
const src = queue.shift(),
|
|
84
|
+
dest = filesToCopy[src];
|
|
85
|
+
copy(src, dest, copyNext);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
copyNext();
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
function copy(src, dest, callback) {
|
|
92
|
+
const destDir = import_node_path.default.dirname(dest);
|
|
93
|
+
import_node_fs.default.mkdir(destDir, {
|
|
94
|
+
recursive: !0
|
|
95
|
+
}, err => {
|
|
96
|
+
if (err) {
|
|
97
|
+
callback(err);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
import_node_fs.default.createReadStream(src).pipe(import_node_fs.default.createWriteStream(dest)).on("finish", callback);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
var saveAssets_default = saveAssets;
|