@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,65 @@
|
|
|
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 import_meta_env_plugin_exports = {};
|
|
33
|
+
__export(import_meta_env_plugin_exports, {
|
|
34
|
+
default: () => import_meta_env_plugin_default,
|
|
35
|
+
importMetaEnvPlugin: () => importMetaEnvPlugin
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(import_meta_env_plugin_exports);
|
|
38
|
+
var import_helper_plugin_utils = require("@babel/helper-plugin-utils"),
|
|
39
|
+
t = __toESM(require("@babel/types"), 1);
|
|
40
|
+
const importMetaEnvPlugin = (0, import_helper_plugin_utils.declare)((api, options) => (api.assertVersion(7), {
|
|
41
|
+
name: "import-meta-env",
|
|
42
|
+
visitor: {
|
|
43
|
+
MemberExpression(path) {
|
|
44
|
+
const {
|
|
45
|
+
node
|
|
46
|
+
} = path;
|
|
47
|
+
if (t.isMetaProperty(node.object) && node.object.meta.name === "import" && node.object.property.name === "meta" && t.isIdentifier(node.property, {
|
|
48
|
+
name: "env"
|
|
49
|
+
})) {
|
|
50
|
+
const envEntries = Object.entries(options.env ?? {}).map(([key, value]) => t.objectProperty(t.identifier(key), value === void 0 ? t.identifier("undefined") : t.valueToNode(value)));
|
|
51
|
+
path.replaceWith(t.objectExpression(envEntries));
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (t.isMemberExpression(node.object) && t.isMetaProperty(node.object.object) && node.object.object.meta.name === "import" && node.object.object.property.name === "meta" && t.isIdentifier(node.object.property, {
|
|
55
|
+
name: "env"
|
|
56
|
+
})) {
|
|
57
|
+
const envKey = t.isIdentifier(node.property) ? node.property.name : t.isStringLiteral(node.property) ? node.property.value : null;
|
|
58
|
+
if (!envKey) return;
|
|
59
|
+
const value = options.env?.[envKey];
|
|
60
|
+
path.replaceWith(value === void 0 ? t.identifier("undefined") : t.valueToNode(value));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
var import_meta_env_plugin_default = importMetaEnvPlugin;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 import_meta_env_plugin_exports = {};
|
|
24
|
+
__export(import_meta_env_plugin_exports, {
|
|
25
|
+
default: () => import_meta_env_plugin_default,
|
|
26
|
+
importMetaEnvPlugin: () => importMetaEnvPlugin
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(import_meta_env_plugin_exports);
|
|
29
|
+
var import_helper_plugin_utils = require("@babel/helper-plugin-utils"), t = __toESM(require("@babel/types"), 1);
|
|
30
|
+
const importMetaEnvPlugin = (0, import_helper_plugin_utils.declare)((api, options) => (api.assertVersion(7), {
|
|
31
|
+
name: "import-meta-env",
|
|
32
|
+
visitor: {
|
|
33
|
+
MemberExpression(path) {
|
|
34
|
+
const { node } = path;
|
|
35
|
+
if (t.isMetaProperty(node.object) && node.object.meta.name === "import" && node.object.property.name === "meta" && t.isIdentifier(node.property, { name: "env" })) {
|
|
36
|
+
const envEntries = Object.entries(options.env ?? {}).map(
|
|
37
|
+
([key, value]) => t.objectProperty(t.identifier(key), value === void 0 ? t.identifier("undefined") : t.valueToNode(value))
|
|
38
|
+
);
|
|
39
|
+
path.replaceWith(t.objectExpression(envEntries));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (t.isMemberExpression(node.object) && t.isMetaProperty(node.object.object) && node.object.object.meta.name === "import" && node.object.object.property.name === "meta" && t.isIdentifier(node.object.property, { name: "env" })) {
|
|
43
|
+
const envKey = t.isIdentifier(node.property) ? node.property.name : t.isStringLiteral(node.property) ? node.property.value : null;
|
|
44
|
+
if (!envKey) return;
|
|
45
|
+
const value = options.env?.[envKey];
|
|
46
|
+
path.replaceWith(value === void 0 ? t.identifier("undefined") : t.valueToNode(value));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
var import_meta_env_plugin_default = importMetaEnvPlugin;
|
|
52
|
+
//# sourceMappingURL=import-meta-env-plugin.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/babel-plugins/import-meta-env-plugin.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAwB,uCACxB,IAAmB;AAOZ,MAAM,0BAAsB,oCAAuB,CAAC,KAAK,aAC9D,IAAI,cAAc,CAAC,GAEZ;AAAA,EACL,MAAM;AAAA,EACN,SAAS;AAAA,IACP,iBAAiB,MAAM;AACrB,YAAM,EAAE,KAAK,IAAI;AAQjB,UALE,EAAE,eAAe,KAAK,MAAM,KAC5B,KAAK,OAAO,KAAK,SAAS,YAC1B,KAAK,OAAO,SAAS,SAAS,UAGZ,EAAE,aAAa,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC,GAAG;AAClE,cAAM,aAAa,OAAO,QAAQ,QAAQ,OAAO,CAAC,CAAC,EAAE;AAAA,UAAI,CAAC,CAAC,KAAK,KAAK,MACnE,EAAE,eAAe,EAAE,WAAW,GAAG,GAAG,UAAU,SAAY,EAAE,WAAW,WAAW,IAAI,EAAE,YAAY,KAAK,CAAC;AAAA,QAC5G;AACA,aAAK,YAAY,EAAE,iBAAiB,UAAU,CAAC;AAC/C;AAAA,MACF;AAGA,UACE,EAAE,mBAAmB,KAAK,MAAM,KAChC,EAAE,eAAe,KAAK,OAAO,MAAM,KACnC,KAAK,OAAO,OAAO,KAAK,SAAS,YACjC,KAAK,OAAO,OAAO,SAAS,SAAS,UACrC,EAAE,aAAa,KAAK,OAAO,UAAU,EAAE,MAAM,MAAM,CAAC,GACpD;AACA,cAAM,SAAS,EAAE,aAAa,KAAK,QAAQ,IACvC,KAAK,SAAS,OACd,EAAE,gBAAgB,KAAK,QAAQ,IAC7B,KAAK,SAAS,QACd;AAEN,YAAI,CAAC,OAAQ;AAEb,cAAM,QAAQ,QAAQ,MAAM,MAAM;AAClC,aAAK,YAAY,UAAU,SAAY,EAAE,WAAW,WAAW,IAAI,EAAE,YAAY,KAAK,CAAC;AAAA,MACzF;AAAA,IACF;AAAA,EACF;AACF,EACD;AAED,IAAO,iCAAQ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 import_meta_env_plugin_exports = {};
|
|
25
|
+
__export(import_meta_env_plugin_exports, {
|
|
26
|
+
default: () => import_meta_env_plugin_default,
|
|
27
|
+
importMetaEnvPlugin: () => importMetaEnvPlugin
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(import_meta_env_plugin_exports);
|
|
30
|
+
var import_helper_plugin_utils = require("@babel/helper-plugin-utils"), t = __toESM(require("@babel/types"), 1), importMetaEnvPlugin = (0, import_helper_plugin_utils.declare)(function(api, options) {
|
|
31
|
+
return api.assertVersion(7), {
|
|
32
|
+
name: "import-meta-env",
|
|
33
|
+
visitor: {
|
|
34
|
+
MemberExpression(path) {
|
|
35
|
+
var { node } = path, isImportMeta = t.isMetaProperty(node.object) && node.object.meta.name === "import" && node.object.property.name === "meta";
|
|
36
|
+
if (isImportMeta && t.isIdentifier(node.property, {
|
|
37
|
+
name: "env"
|
|
38
|
+
})) {
|
|
39
|
+
var _options_env, envEntries = Object.entries((_options_env = options.env) !== null && _options_env !== void 0 ? _options_env : {}).map(function(param) {
|
|
40
|
+
var [key, value2] = param;
|
|
41
|
+
return t.objectProperty(t.identifier(key), value2 === void 0 ? t.identifier("undefined") : t.valueToNode(value2));
|
|
42
|
+
});
|
|
43
|
+
path.replaceWith(t.objectExpression(envEntries));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (t.isMemberExpression(node.object) && t.isMetaProperty(node.object.object) && node.object.object.meta.name === "import" && node.object.object.property.name === "meta" && t.isIdentifier(node.object.property, {
|
|
47
|
+
name: "env"
|
|
48
|
+
})) {
|
|
49
|
+
var _options_env1, envKey = t.isIdentifier(node.property) ? node.property.name : t.isStringLiteral(node.property) ? node.property.value : null;
|
|
50
|
+
if (!envKey) return;
|
|
51
|
+
var value = (_options_env1 = options.env) === null || _options_env1 === void 0 ? void 0 : _options_env1[envKey];
|
|
52
|
+
path.replaceWith(value === void 0 ? t.identifier("undefined") : t.valueToNode(value));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}), import_meta_env_plugin_default = importMetaEnvPlugin;
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
importMetaEnvPlugin
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=import-meta-env-plugin.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/babel-plugins/import-meta-env-plugin.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;iCAAwB,uCACxB,IAAmB,qCAONA,0BAAsBC,oCAAuB,SAACC,KAAKC,SAAAA;AAC9DD,aAAIE,cAAc,CAAA,GAEX;IACLC,MAAM;IACNC,SAAS;MACPC,iBAAiBC,MAAI;AACnB,YAAM,EAAEC,KAAI,IAAKD,MAEXE,eACJC,EAAEC,eAAeH,KAAKI,MAAM,KAC5BJ,KAAKI,OAAOC,KAAKT,SAAS,YAC1BI,KAAKI,OAAOE,SAASV,SAAS;AAGhC,YAAIK,gBAAgBC,EAAEK,aAAaP,KAAKM,UAAU;UAAEV,MAAM;QAAM,CAAA,GAAI;cAChCF,cAA5Bc,aAAaC,OAAOC,SAAQhB,eAAAA,QAAQiB,SAAG,QAAXjB,iBAAAA,SAAAA,eAAe,CAAC,CAAA,EAAGkB,IAAI,SAAA,OAAA;gBAAC,CAACC,KAAKC,MAAAA,IAAM;mBACpEZ,EAAEa,eAAeb,EAAEc,WAAWH,GAAAA,GAAMC,WAAUG,SAAYf,EAAEc,WAAW,WAAA,IAAed,EAAEgB,YAAYJ,MAAAA,CAAAA;;AAEtGf,eAAKoB,YAAYjB,EAAEkB,iBAAiBZ,UAAAA,CAAAA;AACpC;QACF;AAGA,YACEN,EAAEmB,mBAAmBrB,KAAKI,MAAM,KAChCF,EAAEC,eAAeH,KAAKI,OAAOA,MAAM,KACnCJ,KAAKI,OAAOA,OAAOC,KAAKT,SAAS,YACjCI,KAAKI,OAAOA,OAAOE,SAASV,SAAS,UACrCM,EAAEK,aAAaP,KAAKI,OAAOE,UAAU;UAAEV,MAAM;QAAM,CAAA,GACnD;cAScF,eARR4B,SAASpB,EAAEK,aAAaP,KAAKM,QAAQ,IACvCN,KAAKM,SAASV,OACdM,EAAEqB,gBAAgBvB,KAAKM,QAAQ,IAC7BN,KAAKM,SAASQ,QACd;AAEN,cAAI,CAACQ,OAAQ;AAEb,cAAMR,SAAQpB,gBAAAA,QAAQiB,SAAG,QAAXjB,kBAAAA,SAAAA,SAAAA,cAAc4B,MAAAA;AAC5BvB,eAAKoB,YAAYL,UAAUG,SAAYf,EAAEc,WAAW,WAAA,IAAed,EAAEgB,YAAYJ,KAAAA,CAAAA;QACnF;MACF;IACF;EACF;AACF,CAAA,GAEA,iCAAevB;",
|
|
5
|
+
"names": ["importMetaEnvPlugin", "declare", "api", "options", "assertVersion", "name", "visitor", "MemberExpression", "path", "node", "isImportMeta", "t", "isMetaProperty", "object", "meta", "property", "isIdentifier", "envEntries", "Object", "entries", "env", "map", "key", "value", "objectProperty", "identifier", "undefined", "valueToNode", "replaceWith", "objectExpression", "isMemberExpression", "envKey", "isStringLiteral"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 getMetroBabelConfigFromViteConfig_exports = {};
|
|
22
|
+
__export(getMetroBabelConfigFromViteConfig_exports, {
|
|
23
|
+
getMetroBabelConfigFromViteConfig: () => getMetroBabelConfigFromViteConfig
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(getMetroBabelConfigFromViteConfig_exports);
|
|
26
|
+
function getMetroBabelConfigFromViteConfig(config) {
|
|
27
|
+
const importMetaEnv = {
|
|
28
|
+
// https://vite.dev/guide/env-and-mode.html#built-in-constants
|
|
29
|
+
MODE: config.mode,
|
|
30
|
+
BASE_URL: "https://vxrn.not.supported.yet",
|
|
31
|
+
PROD: config.mode === "production",
|
|
32
|
+
DEV: config.mode === "development",
|
|
33
|
+
SSR: !1
|
|
34
|
+
},
|
|
35
|
+
envPrefix = config.envPrefix || "VITE_";
|
|
36
|
+
return envPrefix && Object.keys(process.env).forEach(key => {
|
|
37
|
+
(Array.isArray(envPrefix) ? envPrefix.some(p => key.startsWith(p)) : key.startsWith(envPrefix)) && (importMetaEnv[key] = process.env[key]);
|
|
38
|
+
}), {
|
|
39
|
+
plugins: [
|
|
40
|
+
// Note that we can only pass Babel plugins by name here,
|
|
41
|
+
// since Metro will run Babel transformers in different threads
|
|
42
|
+
// and plugins are not serializable, it seems.
|
|
43
|
+
["@vxrn/vite-plugin-metro/babel-plugins/import-meta-env-plugin", {
|
|
44
|
+
env: importMetaEnv
|
|
45
|
+
}]]
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 getMetroBabelConfigFromViteConfig_exports = {};
|
|
16
|
+
__export(getMetroBabelConfigFromViteConfig_exports, {
|
|
17
|
+
getMetroBabelConfigFromViteConfig: () => getMetroBabelConfigFromViteConfig
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(getMetroBabelConfigFromViteConfig_exports);
|
|
20
|
+
function getMetroBabelConfigFromViteConfig(config) {
|
|
21
|
+
const importMetaEnv = {
|
|
22
|
+
// https://vite.dev/guide/env-and-mode.html#built-in-constants
|
|
23
|
+
MODE: config.mode,
|
|
24
|
+
BASE_URL: "https://vxrn.not.supported.yet",
|
|
25
|
+
PROD: config.mode === "production",
|
|
26
|
+
DEV: config.mode === "development",
|
|
27
|
+
SSR: !1
|
|
28
|
+
}, envPrefix = config.envPrefix || "VITE_";
|
|
29
|
+
return envPrefix && Object.keys(process.env).forEach((key) => {
|
|
30
|
+
(Array.isArray(envPrefix) ? envPrefix.some((p) => key.startsWith(p)) : key.startsWith(envPrefix)) && (importMetaEnv[key] = process.env[key]);
|
|
31
|
+
}), {
|
|
32
|
+
plugins: [
|
|
33
|
+
// Note that we can only pass Babel plugins by name here,
|
|
34
|
+
// since Metro will run Babel transformers in different threads
|
|
35
|
+
// and plugins are not serializable, it seems.
|
|
36
|
+
["@vxrn/vite-plugin-metro/babel-plugins/import-meta-env-plugin", { env: importMetaEnv }]
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=getMetroBabelConfigFromViteConfig.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/metro-config/getMetroBabelConfigFromViteConfig.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,kCAAkC,QAA0C;AAC1F,QAAM,gBAAgB;AAAA;AAAA,IAEpB,MAAM,OAAO;AAAA,IACb,UAAU;AAAA,IACV,MAAM,OAAO,SAAS;AAAA,IACtB,KAAK,OAAO,SAAS;AAAA,IACrB,KAAK;AAAA,EACP,GAGM,YAAY,OAAO,aAAa;AACtC,SAAI,aACF,OAAO,KAAK,QAAQ,GAAG,EAAE,QAAQ,CAAC,QAAQ;AAKxC,KAJsB,MAAM,QAAQ,SAAS,IACzC,UAAU,KAAK,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,IACvC,IAAI,WAAW,SAAS,OAG1B,cAAc,GAAG,IAAI,QAAQ,IAAI,GAAG;AAAA,EAExC,CAAC,GAGI;AAAA,IACL,SAAS;AAAA;AAAA;AAAA;AAAA,MAIP,CAAC,gEAAgE,EAAE,KAAK,cAAc,CAAC;AAAA,IACzF;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 getMetroBabelConfigFromViteConfig_exports = {};
|
|
17
|
+
__export(getMetroBabelConfigFromViteConfig_exports, {
|
|
18
|
+
getMetroBabelConfigFromViteConfig: () => getMetroBabelConfigFromViteConfig
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(getMetroBabelConfigFromViteConfig_exports);
|
|
21
|
+
function getMetroBabelConfigFromViteConfig(config) {
|
|
22
|
+
var importMetaEnv = {
|
|
23
|
+
// https://vite.dev/guide/env-and-mode.html#built-in-constants
|
|
24
|
+
MODE: config.mode,
|
|
25
|
+
BASE_URL: "https://vxrn.not.supported.yet",
|
|
26
|
+
PROD: config.mode === "production",
|
|
27
|
+
DEV: config.mode === "development",
|
|
28
|
+
SSR: !1
|
|
29
|
+
}, envPrefix = config.envPrefix || "VITE_";
|
|
30
|
+
return envPrefix && Object.keys(process.env).forEach(function(key) {
|
|
31
|
+
var shouldInclude = Array.isArray(envPrefix) ? envPrefix.some(function(p) {
|
|
32
|
+
return key.startsWith(p);
|
|
33
|
+
}) : key.startsWith(envPrefix);
|
|
34
|
+
shouldInclude && (importMetaEnv[key] = process.env[key]);
|
|
35
|
+
}), {
|
|
36
|
+
plugins: [
|
|
37
|
+
// Note that we can only pass Babel plugins by name here,
|
|
38
|
+
// since Metro will run Babel transformers in different threads
|
|
39
|
+
// and plugins are not serializable, it seems.
|
|
40
|
+
[
|
|
41
|
+
"@vxrn/vite-plugin-metro/babel-plugins/import-meta-env-plugin",
|
|
42
|
+
{
|
|
43
|
+
env: importMetaEnv
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
getMetroBabelConfigFromViteConfig
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=getMetroBabelConfigFromViteConfig.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/metro-config/getMetroBabelConfigFromViteConfig.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAEA;;;;;AAeO,SAASA,kCAAkCC,QAAsB;AACtE,MAAMC,gBAAgB;;IAEpBC,MAAMF,OAAOG;IACbC,UAAU;IACVC,MAAML,OAAOG,SAAS;IACtBG,KAAKN,OAAOG,SAAS;IACrBI,KAAK;EACP,GAGMC,YAAYR,OAAOQ,aAAa;AACtC,SAAIA,aACFC,OAAOC,KAAKC,QAAQC,GAAG,EAAEC,QAAQ,SAACC,KAAAA;AAChC,QAAMC,gBAAgBC,MAAMC,QAAQT,SAAAA,IAChCA,UAAUU,KAAK,SAACC,GAAAA;aAAML,IAAIM,WAAWD,CAAAA;SACrCL,IAAIM,WAAWZ,SAAAA;AAEnB,IAAIO,kBACFd,cAAca,GAAAA,IAAOH,QAAQC,IAAIE,GAAAA;EAErC,CAAA,GAGK;IACLO,SAAS;;;;MAIP;QAAC;QAAgE;UAAET,KAAKX;QAAc;;;EAE1F;AACF;",
|
|
5
|
+
"names": ["getMetroBabelConfigFromViteConfig", "config", "importMetaEnv", "MODE", "mode", "BASE_URL", "PROD", "DEV", "SSR", "envPrefix", "Object", "keys", "process", "env", "forEach", "key", "shouldInclude", "Array", "isArray", "some", "p", "startsWith", "plugins"]
|
|
6
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 getMetroConfigFromViteConfig_exports = {};
|
|
22
|
+
__export(getMetroConfigFromViteConfig_exports, {
|
|
23
|
+
getMetroConfigFromViteConfig: () => getMetroConfigFromViteConfig
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(getMetroConfigFromViteConfig_exports);
|
|
26
|
+
var import_projectImport = require("../utils/projectImport.cjs"),
|
|
27
|
+
import_getTerminalReporter = require("../utils/getTerminalReporter.cjs"),
|
|
28
|
+
import_patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName = require("../utils/patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName.cjs");
|
|
29
|
+
async function getMetroConfigFromViteConfig(config, metroPluginOptions) {
|
|
30
|
+
const extraConfig = {},
|
|
31
|
+
{
|
|
32
|
+
root: projectRoot
|
|
33
|
+
} = config,
|
|
34
|
+
{
|
|
35
|
+
mainModuleName,
|
|
36
|
+
argv,
|
|
37
|
+
defaultConfigOverrides
|
|
38
|
+
} = metroPluginOptions,
|
|
39
|
+
{
|
|
40
|
+
loadConfig
|
|
41
|
+
} = await (0, import_projectImport.projectImport)(projectRoot, "metro"),
|
|
42
|
+
{
|
|
43
|
+
getDefaultConfig
|
|
44
|
+
} = await (0, import_projectImport.projectImport)(projectRoot, "@expo/metro-config"),
|
|
45
|
+
_defaultConfig = getDefaultConfig(projectRoot);
|
|
46
|
+
if (mainModuleName) {
|
|
47
|
+
const origRewriteRequestUrl = _defaultConfig.server.rewriteRequestUrl,
|
|
48
|
+
resolveMainModuleName = await (async () => {
|
|
49
|
+
const ExpoGoManifestHandlerMiddleware = (await (0, import_projectImport.projectImport)(projectRoot, "@expo/cli/build/src/start/server/middleware/ExpoGoManifestHandlerMiddleware.js")).default.ExpoGoManifestHandlerMiddleware,
|
|
50
|
+
manifestHandlerMiddleware = new ExpoGoManifestHandlerMiddleware(projectRoot, {});
|
|
51
|
+
return (0, import_patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName.patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName)(manifestHandlerMiddleware, mainModuleName), p => manifestHandlerMiddleware.resolveMainModuleName({
|
|
52
|
+
pkg: {
|
|
53
|
+
main: mainModuleName
|
|
54
|
+
},
|
|
55
|
+
platform: p.platform
|
|
56
|
+
});
|
|
57
|
+
})();
|
|
58
|
+
extraConfig.getResolveMainModuleName = resolveMainModuleName, _defaultConfig.server.rewriteRequestUrl = url => {
|
|
59
|
+
if (url.includes("/.expo/.virtual-metro-entry.bundle?")) {
|
|
60
|
+
const resolvedMainModulePath = resolveMainModuleName({
|
|
61
|
+
platform: "ios"
|
|
62
|
+
// we probably need to handle android here, but currently in our use case this won't affect the result
|
|
63
|
+
});
|
|
64
|
+
return url.replace(".expo/.virtual-metro-entry", resolvedMainModulePath);
|
|
65
|
+
}
|
|
66
|
+
return origRewriteRequestUrl(url);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const defaultConfig = {
|
|
70
|
+
..._defaultConfig,
|
|
71
|
+
resolver: {
|
|
72
|
+
..._defaultConfig?.resolver,
|
|
73
|
+
sourceExts: ["js", "jsx", "json", "ts", "tsx", "mjs", "cjs"],
|
|
74
|
+
// `one` related packages are using `.mjs` extensions. This somehow fixes `.native` files not being resolved correctly when `.mjs` files are present.
|
|
75
|
+
resolveRequest: (context, moduleName, platform) => {
|
|
76
|
+
const origResolveRequestFn = _defaultConfig?.resolver?.resolveRequest || context.resolveRequest;
|
|
77
|
+
if (moduleName.startsWith("@babel/runtime")) {
|
|
78
|
+
const contextOverride = {
|
|
79
|
+
...context,
|
|
80
|
+
unstable_conditionNames: context.unstable_conditionNames.filter(c => c !== "import")
|
|
81
|
+
};
|
|
82
|
+
return origResolveRequestFn(contextOverride, moduleName, platform);
|
|
83
|
+
}
|
|
84
|
+
return origResolveRequestFn(context, moduleName, platform);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
transformer: {
|
|
88
|
+
..._defaultConfig?.transformer,
|
|
89
|
+
babelTransformerPath: (0, import_projectImport.projectResolve)(projectRoot, "@vxrn/vite-plugin-metro/babel-transformer")
|
|
90
|
+
// TODO: This is what Expo is doing, but do we really need this?
|
|
91
|
+
// Doing so seems to make the release build broken since assets will be
|
|
92
|
+
// copied to /.../Xcode/DerivedData/.../Build/Products/Release-iphonesimulator/...app/assets/?unstable_path=.%2Fsrc%2Fimages/logo.png
|
|
93
|
+
// publicPath: '/assets/?unstable_path=.',
|
|
94
|
+
},
|
|
95
|
+
reporter: await (0, import_getTerminalReporter.getTerminalReporter)(projectRoot)
|
|
96
|
+
};
|
|
97
|
+
return {
|
|
98
|
+
...(await loadConfig({
|
|
99
|
+
cwd: projectRoot,
|
|
100
|
+
projectRoot,
|
|
101
|
+
"reset-cache": !!process.env.METRO_RESET_CACHE,
|
|
102
|
+
// TODO: `--clean`
|
|
103
|
+
...argv
|
|
104
|
+
}, {
|
|
105
|
+
...defaultConfig,
|
|
106
|
+
...(typeof defaultConfigOverrides == "function" ? defaultConfigOverrides(defaultConfig) : defaultConfigOverrides)
|
|
107
|
+
})),
|
|
108
|
+
...extraConfig
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 getMetroConfigFromViteConfig_exports = {};
|
|
16
|
+
__export(getMetroConfigFromViteConfig_exports, {
|
|
17
|
+
getMetroConfigFromViteConfig: () => getMetroConfigFromViteConfig
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(getMetroConfigFromViteConfig_exports);
|
|
20
|
+
var import_projectImport = require("../utils/projectImport"), import_getTerminalReporter = require("../utils/getTerminalReporter"), import_patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName = require("../utils/patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName");
|
|
21
|
+
async function getMetroConfigFromViteConfig(config, metroPluginOptions) {
|
|
22
|
+
const extraConfig = {}, { root: projectRoot } = config, { mainModuleName, argv, defaultConfigOverrides } = metroPluginOptions, { loadConfig } = await (0, import_projectImport.projectImport)(projectRoot, "metro"), { getDefaultConfig } = await (0, import_projectImport.projectImport)(projectRoot, "@expo/metro-config"), _defaultConfig = getDefaultConfig(projectRoot);
|
|
23
|
+
if (mainModuleName) {
|
|
24
|
+
const origRewriteRequestUrl = _defaultConfig.server.rewriteRequestUrl, resolveMainModuleName = await (async () => {
|
|
25
|
+
const ExpoGoManifestHandlerMiddleware = (await (0, import_projectImport.projectImport)(
|
|
26
|
+
projectRoot,
|
|
27
|
+
"@expo/cli/build/src/start/server/middleware/ExpoGoManifestHandlerMiddleware.js"
|
|
28
|
+
)).default.ExpoGoManifestHandlerMiddleware, manifestHandlerMiddleware = new ExpoGoManifestHandlerMiddleware(projectRoot, {});
|
|
29
|
+
return (0, import_patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName.patchExpoGoManifestHandlerMiddlewareWithCustomMainModuleName)(
|
|
30
|
+
manifestHandlerMiddleware,
|
|
31
|
+
mainModuleName
|
|
32
|
+
), (p) => manifestHandlerMiddleware.resolveMainModuleName({
|
|
33
|
+
pkg: { main: mainModuleName },
|
|
34
|
+
platform: p.platform
|
|
35
|
+
});
|
|
36
|
+
})();
|
|
37
|
+
extraConfig.getResolveMainModuleName = resolveMainModuleName, _defaultConfig.server.rewriteRequestUrl = (url) => {
|
|
38
|
+
if (url.includes("/.expo/.virtual-metro-entry.bundle?")) {
|
|
39
|
+
const resolvedMainModulePath = resolveMainModuleName({
|
|
40
|
+
platform: "ios"
|
|
41
|
+
// we probably need to handle android here, but currently in our use case this won't affect the result
|
|
42
|
+
});
|
|
43
|
+
return url.replace(".expo/.virtual-metro-entry", resolvedMainModulePath);
|
|
44
|
+
}
|
|
45
|
+
return origRewriteRequestUrl(url);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const defaultConfig = {
|
|
49
|
+
..._defaultConfig,
|
|
50
|
+
resolver: {
|
|
51
|
+
..._defaultConfig?.resolver,
|
|
52
|
+
sourceExts: ["js", "jsx", "json", "ts", "tsx", "mjs", "cjs"],
|
|
53
|
+
// `one` related packages are using `.mjs` extensions. This somehow fixes `.native` files not being resolved correctly when `.mjs` files are present.
|
|
54
|
+
resolveRequest: (context, moduleName, platform) => {
|
|
55
|
+
const origResolveRequestFn = _defaultConfig?.resolver?.resolveRequest || context.resolveRequest;
|
|
56
|
+
if (moduleName.startsWith("@babel/runtime")) {
|
|
57
|
+
const contextOverride = {
|
|
58
|
+
...context,
|
|
59
|
+
unstable_conditionNames: context.unstable_conditionNames.filter((c) => c !== "import")
|
|
60
|
+
};
|
|
61
|
+
return origResolveRequestFn(contextOverride, moduleName, platform);
|
|
62
|
+
}
|
|
63
|
+
return origResolveRequestFn(context, moduleName, platform);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
transformer: {
|
|
67
|
+
..._defaultConfig?.transformer,
|
|
68
|
+
babelTransformerPath: (0, import_projectImport.projectResolve)(
|
|
69
|
+
projectRoot,
|
|
70
|
+
"@vxrn/vite-plugin-metro/babel-transformer"
|
|
71
|
+
)
|
|
72
|
+
// TODO: This is what Expo is doing, but do we really need this?
|
|
73
|
+
// Doing so seems to make the release build broken since assets will be
|
|
74
|
+
// copied to /.../Xcode/DerivedData/.../Build/Products/Release-iphonesimulator/...app/assets/?unstable_path=.%2Fsrc%2Fimages/logo.png
|
|
75
|
+
// publicPath: '/assets/?unstable_path=.',
|
|
76
|
+
},
|
|
77
|
+
reporter: await (0, import_getTerminalReporter.getTerminalReporter)(projectRoot)
|
|
78
|
+
};
|
|
79
|
+
return {
|
|
80
|
+
...await loadConfig(
|
|
81
|
+
{
|
|
82
|
+
cwd: projectRoot,
|
|
83
|
+
projectRoot,
|
|
84
|
+
"reset-cache": !!process.env.METRO_RESET_CACHE,
|
|
85
|
+
// TODO: `--clean`
|
|
86
|
+
...argv
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
...defaultConfig,
|
|
90
|
+
...typeof defaultConfigOverrides == "function" ? defaultConfigOverrides(defaultConfig) : defaultConfigOverrides
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
...extraConfig
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=getMetroConfigFromViteConfig.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/metro-config/getMetroConfigFromViteConfig.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,2BAA8C,mCAC9C,6BAAoC,yCACpC,sEAA6E;AAM7E,eAAsB,6BACpB,QACA,oBAC8B;AAC9B,QAAM,cAA2B,CAAC,GAC5B,EAAE,MAAM,YAAY,IAAI,QACxB,EAAE,gBAAgB,MAAM,uBAAuB,IAAI,oBAEnD,EAAE,WAAW,IAAI,UAAM,oCAE1B,aAAa,OAAO,GACjB,EAAE,iBAAiB,IAAI,UAAM,oCAEhC,aAAa,oBAAoB,GAE9B,iBAAmC,iBAAiB,WAAW;AAErE,MAAI,gBAAgB;AAClB,UAAM,wBAAwB,eAAgB,OAAQ,mBAQhD,wBACJ,OAAO,YAAY;AACjB,YAAM,mCACJ,UAAM;AAAA,QACJ;AAAA,QACA;AAAA,MACF,GACA,QAAQ,iCAEJ,4BAA4B,IAAI,gCAAgC,aAAa,CAAC,CAAC;AAErF;AAAA,QACE;AAAA,QACA;AAAA,MACF,GAEO,CAAC,MACC,0BAA0B,sBAAsB;AAAA,QACrD,KAAK,EAAE,MAAM,eAAe;AAAA,QAC5B,UAAU,EAAE;AAAA,MACd,CAAC;AAAA,IAEL,GAAG;AAEL,gBAAY,2BAA2B,uBAEvC,eAAgB,OAAQ,oBAAoB,CAAC,QAAQ;AACnD,UAAI,IAAI,SAAS,qCAAqC,GAAG;AACvD,cAAM,yBAAyB,sBAAsB;AAAA,UACnD,UAAU;AAAA;AAAA,QACZ,CAAC;AAED,eAAO,IAAI,QAAQ,8BAA8B,sBAAsB;AAAA,MACzE;AAEA,aAAO,sBAAsB,GAAG;AAAA,IAClC;AAAA,EACF;AAEA,QAAM,gBAAkC;AAAA,IACtC,GAAG;AAAA,IACH,UAAU;AAAA,MACR,GAAG,gBAAgB;AAAA,MACnB,YAAY,CAAC,MAAM,OAAO,QAAQ,MAAM,OAAO,OAAO,KAAK;AAAA;AAAA,MAC3D,gBAAgB,CAAC,SAAS,YAAY,aAAa;AACjD,cAAM,uBACJ,gBAAgB,UAAU,kBAAkB,QAAQ;AAWtD,YAAI,WAAW,WAAW,gBAAgB,GAAG;AAC3C,gBAAM,kBAAkB;AAAA,YACtB,GAAG;AAAA,YACH,yBAAyB,QAAQ,wBAAwB,OAAO,CAAC,MAAM,MAAM,QAAQ;AAAA,UACvF;AACA,iBAAO,qBAAqB,iBAAiB,YAAY,QAAQ;AAAA,QACnE;AAEA,eAAO,qBAAqB,SAAS,YAAY,QAAQ;AAAA,MAC3D;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,GAAG,gBAAgB;AAAA,MACnB,0BAAsB;AAAA,QACpB;AAAA,QACA;AAAA,MACF;AAAA;AAAA;AAAA;AAAA;AAAA,IAKF;AAAA,IACA,UAAU,UAAM,gDAAoB,WAAW;AAAA,EACjD;AAiBA,SAAO;AAAA,IACL,GAhBkB,MAAM;AAAA,MACxB;AAAA,QACE,KAAK;AAAA,QACL;AAAA,QACA,eAAe,CAAC,CAAC,QAAQ,IAAI;AAAA;AAAA,QAC7B,GAAG;AAAA,MACL;AAAA,MACA;AAAA,QACE,GAAG;AAAA,QACH,GAAI,OAAO,0BAA2B,aAClC,uBAAuB,aAAa,IACpC;AAAA,MACN;AAAA,IACF;AAAA,IAIE,GAAG;AAAA,EACL;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|