vxrn 1.1.310 → 1.1.312
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/exports/dev.js +6 -2
- package/dist/exports/dev.js.map +1 -1
- package/dist/exports/dev.mjs +6 -2
- package/dist/exports/dev.mjs.map +1 -1
- package/dist/exports/dev.native.js +6 -2
- package/dist/exports/dev.native.js.map +2 -2
- package/dist/exports/loadEnv.js +23 -0
- package/dist/exports/loadEnv.js.map +6 -0
- package/dist/exports/loadEnv.mjs +16 -0
- package/dist/exports/loadEnv.mjs.map +1 -0
- package/dist/exports/loadEnv.native.js +30 -0
- package/dist/exports/loadEnv.native.js.map +6 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +2 -0
- package/dist/index.native.js.map +2 -2
- package/dist/plugins/reactNativeHMRPlugin.js +28 -8
- package/dist/plugins/reactNativeHMRPlugin.js.map +2 -2
- package/dist/plugins/reactNativeHMRPlugin.mjs +22 -10
- package/dist/plugins/reactNativeHMRPlugin.mjs.map +1 -1
- package/dist/plugins/reactNativeHMRPlugin.native.js +45 -21
- package/dist/plugins/reactNativeHMRPlugin.native.js.map +2 -2
- package/dist/rn-commands/bundle/buildBundle.js +3 -3
- package/dist/rn-commands/bundle/buildBundle.js.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.mjs +3 -3
- package/dist/rn-commands/bundle/buildBundle.mjs.map +1 -1
- package/dist/rn-commands/bundle/buildBundle.native.js +3 -3
- package/dist/rn-commands/bundle/buildBundle.native.js.map +2 -2
- package/dist/utils/filterPluginsForNative.js +29 -0
- package/dist/utils/filterPluginsForNative.js.map +6 -0
- package/dist/utils/filterPluginsForNative.mjs +27 -0
- package/dist/utils/filterPluginsForNative.mjs.map +1 -0
- package/dist/utils/filterPluginsForNative.native.js +35 -0
- package/dist/utils/filterPluginsForNative.native.js.map +6 -0
- package/dist/utils/fork/vite/build.js +2 -23
- package/dist/utils/fork/vite/build.js.map +1 -1
- package/dist/utils/fork/vite/build.mjs +4 -21
- package/dist/utils/fork/vite/build.mjs.map +1 -1
- package/dist/utils/fork/vite/build.native.js +3 -24
- package/dist/utils/fork/vite/build.native.js.map +2 -2
- package/dist/utils/getOptimizeDeps.js +3 -0
- package/dist/utils/getOptimizeDeps.js.map +1 -1
- package/dist/utils/getOptimizeDeps.mjs +1 -1
- package/dist/utils/getOptimizeDeps.mjs.map +1 -1
- package/dist/utils/getOptimizeDeps.native.js +3 -0
- package/dist/utils/getOptimizeDeps.native.js.map +1 -1
- package/dist/utils/getReactNativeBundle.js +3 -3
- package/dist/utils/getReactNativeBundle.js.map +1 -1
- package/dist/utils/getReactNativeBundle.mjs +6 -3
- package/dist/utils/getReactNativeBundle.mjs.map +1 -1
- package/dist/utils/getReactNativeBundle.native.js +5 -3
- package/dist/utils/getReactNativeBundle.native.js.map +2 -2
- package/package.json +9 -10
- package/src/exports/dev.ts +10 -1
- package/src/exports/loadEnv.ts +27 -0
- package/src/index.ts +1 -0
- package/src/plugins/reactNativeHMRPlugin.ts +46 -12
- package/src/rn-commands/bundle/buildBundle.ts +3 -3
- package/src/utils/filterPluginsForNative.ts +51 -0
- package/src/utils/fork/vite/build.ts +2 -36
- package/src/utils/getOptimizeDeps.ts +3 -0
- package/src/utils/getReactNativeBundle.ts +6 -3
- package/types/exports/dev.d.ts.map +1 -1
- package/types/exports/loadEnv.d.ts +8 -0
- package/types/exports/loadEnv.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/plugins/clientInjectPlugin.d.ts +1 -1
- package/types/plugins/reactNativeHMRPlugin.d.ts.map +1 -1
- package/types/utils/filterPluginsForNative.d.ts +8 -0
- package/types/utils/filterPluginsForNative.d.ts.map +1 -0
- package/types/utils/fork/vite/build.d.ts.map +1 -1
- package/types/utils/getOptimizeDeps.d.ts.map +1 -1
- package/types/utils/getReactNativeBundle.d.ts.map +1 -1
- package/types/utils/getReactNativeConfig.d.ts +1 -1
- package/dist/utils/loadEnv.js +0 -13
- package/dist/utils/loadEnv.js.map +0 -6
- package/dist/utils/loadEnv.mjs +0 -13
- package/dist/utils/loadEnv.mjs.map +0 -1
- package/dist/utils/loadEnv.native.js +0 -16
- package/dist/utils/loadEnv.native.js.map +0 -6
- package/src/utils/loadEnv.ts +0 -11
- package/types/utils/loadEnv.d.ts +0 -2
- package/types/utils/loadEnv.d.ts.map +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Plugin } from 'vite'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Filter out plugins and plugin hooks that are not needed for (or will even break) React Native.
|
|
5
|
+
*/
|
|
6
|
+
export function filterPluginsForNative(
|
|
7
|
+
plugins: Plugin[],
|
|
8
|
+
{ isNative }: { isNative: boolean }
|
|
9
|
+
): Plugin[] {
|
|
10
|
+
return plugins
|
|
11
|
+
.flatMap((p) => {
|
|
12
|
+
if (p.name.endsWith('-web-only')) {
|
|
13
|
+
return null
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (p.name === 'vite:reporter') {
|
|
17
|
+
return {
|
|
18
|
+
...p,
|
|
19
|
+
// Printing out bundle details such as all the files that are included in the bundle and their sizes will cutter the terminal and also waste time.
|
|
20
|
+
writeBundle: undefined,
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Filter out unnecessary `renderChunk` hooks that are not needed for RN
|
|
25
|
+
if (
|
|
26
|
+
isNative /* See: https://github.com/universal-future/one/pull/23#issuecomment-2381402764 */ &&
|
|
27
|
+
p.renderChunk
|
|
28
|
+
) {
|
|
29
|
+
if (
|
|
30
|
+
[
|
|
31
|
+
'vite:build-metadata', // Inserts asset and CSS related metadata which is not needed for RN (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/metadata.ts#L10-L16)
|
|
32
|
+
'vite:worker', // See: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/worker.ts#L383-L429
|
|
33
|
+
'vite:asset', // Seems not needed since with RN we have our own asset handling logic (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/asset.ts#L214-L227)
|
|
34
|
+
'vite:css-post', // Seems not needed since we are not using CSS-in-JS for RN (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/css.ts#L560-L830)
|
|
35
|
+
'vite:force-systemjs-wrap-complete', // Not needed since we are not using SystemJS (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/completeSystemWrap.ts#L12-L21)
|
|
36
|
+
// 'vite:build-import-analysis',
|
|
37
|
+
'vite:esbuild-transpile', // Seems to be ok to remove.
|
|
38
|
+
'vite:reporter',
|
|
39
|
+
].includes(p.name)
|
|
40
|
+
) {
|
|
41
|
+
return {
|
|
42
|
+
...p,
|
|
43
|
+
renderChunk: undefined,
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return p
|
|
49
|
+
})
|
|
50
|
+
.filter((p) => p !== null)
|
|
51
|
+
}
|
|
@@ -41,6 +41,7 @@ import { getHookHandler } from './plugins'
|
|
|
41
41
|
import type { RollupPluginHooks } from './typeUtils'
|
|
42
42
|
import { ROLLUP_HOOKS } from './constants'
|
|
43
43
|
import { isNativeEnvironment } from '../../environmentUtils'
|
|
44
|
+
import { filterPluginsForNative } from '../../filterPluginsForNative'
|
|
44
45
|
|
|
45
46
|
/**
|
|
46
47
|
* Build an App environment, or a App library (if libraryOptions is provided)
|
|
@@ -121,42 +122,7 @@ export async function buildEnvironment(
|
|
|
121
122
|
|
|
122
123
|
// vxrn: filter out unnecessary plugin functions
|
|
123
124
|
// plugins,
|
|
124
|
-
plugins: plugins
|
|
125
|
-
if (p.name.endsWith('-web-only')) {
|
|
126
|
-
return null
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (p.name === 'vite:reporter') {
|
|
130
|
-
return {
|
|
131
|
-
...p,
|
|
132
|
-
// Printing out bundle details such as all the files that are included in the bundle and their sizes will cutter the terminal and also waste time.
|
|
133
|
-
writeBundle: undefined,
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Filter out unnecessary `renderChunk` hooks that are not needed for RN
|
|
138
|
-
if (isNative && p.renderChunk) {
|
|
139
|
-
if (
|
|
140
|
-
[
|
|
141
|
-
'vite:build-metadata', // Inserts asset and CSS related metadata which is not needed for RN (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/metadata.ts#L10-L16)
|
|
142
|
-
'vite:worker', // See: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/worker.ts#L383-L429
|
|
143
|
-
'vite:asset', // Seems not needed since with RN we have our own asset handling logic (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/asset.ts#L214-L227)
|
|
144
|
-
'vite:css-post', // Seems not needed since we are not using CSS-in-JS for RN (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/css.ts#L560-L830)
|
|
145
|
-
'vite:force-systemjs-wrap-complete', // Not needed since we are not using SystemJS (see: https://github.com/vitejs/vite/blob/v6.0.0-alpha.18/packages/vite/src/node/plugins/completeSystemWrap.ts#L12-L21)
|
|
146
|
-
// 'vite:build-import-analysis',
|
|
147
|
-
'vite:esbuild-transpile', // Seems to be ok to remove.
|
|
148
|
-
'vite:reporter',
|
|
149
|
-
].includes(p.name)
|
|
150
|
-
) {
|
|
151
|
-
return {
|
|
152
|
-
...p,
|
|
153
|
-
renderChunk: undefined,
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return p
|
|
159
|
-
}),
|
|
125
|
+
plugins: filterPluginsForNative(plugins, { isNative }),
|
|
160
126
|
|
|
161
127
|
external: options.rollupOptions?.external,
|
|
162
128
|
onwarn(warning, warn) {
|
|
@@ -76,11 +76,14 @@ export function getOptimizeDeps(mode: 'build' | 'serve') {
|
|
|
76
76
|
'querystringify',
|
|
77
77
|
'compare-versions',
|
|
78
78
|
'strict-uri-encode',
|
|
79
|
+
'expo-document-picker',
|
|
79
80
|
'decode-uri-component',
|
|
80
81
|
'split-on-first',
|
|
81
82
|
'filter-obj',
|
|
82
83
|
'scheduler',
|
|
83
84
|
'warn-once',
|
|
85
|
+
'react-query',
|
|
86
|
+
'@tanstack/react-query',
|
|
84
87
|
'@radix-ui/react-compose-refs',
|
|
85
88
|
'@radix-ui/react-slot',
|
|
86
89
|
'expo-splash-screen',
|
|
@@ -84,15 +84,18 @@ export async function getReactNativeBundle(
|
|
|
84
84
|
|
|
85
85
|
// We are using a forked version of the Vite internal function `buildEnvironment` (which is what `builder.build` calls) that will return the Rollup cache object with the build output, and also with some performance improvements.
|
|
86
86
|
const buildOutput = await buildEnvironment(environment.config, environment)
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
const { cache: currentCache } = buildOutput
|
|
88
|
+
if (currentCache) {
|
|
89
|
+
// Do not cache some virtual modules that can dynamically change without an corresponding change in the source code to invalidate the cache.
|
|
90
|
+
currentCache.modules = currentCache.modules.filter((m) => !m.id.endsWith('one-entry-native'))
|
|
91
|
+
cache[environmentName] = currentCache
|
|
89
92
|
|
|
90
93
|
// do not await cache write
|
|
91
94
|
;(async () => {
|
|
92
95
|
if (!internal.useCache) return
|
|
93
96
|
|
|
94
97
|
try {
|
|
95
|
-
await FSExtra.writeJSON(rollupCacheFile,
|
|
98
|
+
await FSExtra.writeJSON(rollupCacheFile, currentCache, { replacer: bigIntReplacer })
|
|
96
99
|
} catch (e) {
|
|
97
100
|
console.error(`Error saving Rollup cache to ${rollupCacheFile}: ${e}`)
|
|
98
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/exports/dev.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/exports/dev.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAgB3C;;;;;;;;GAQG;AAEH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAE1D,eAAO,MAAM,GAAG,cAAqB,UAAU;;;;;;;EAkU9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadEnv.d.ts","sourceRoot":"","sources":["../../src/exports/loadEnv.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,aAAa,EAAE,IAAI,SAAgB;;;;;;EAwB/E"}
|
package/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { prebuild } from './exports/prebuild';
|
|
|
5
5
|
export { runIos } from './exports/runIos';
|
|
6
6
|
export { runAndroid } from './exports/runAndroid';
|
|
7
7
|
export { clean } from './exports/clean';
|
|
8
|
+
export { loadEnv } from './exports/loadEnv';
|
|
8
9
|
export { type VXRNOptionsFilled, getOptionsFilled, fillOptions } from './utils/getOptionsFilled';
|
|
9
10
|
export * from './utils/getOptimizeDeps';
|
|
10
11
|
export * from './utils/getBaseViteConfig';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAE3C,OAAO,EAAE,KAAK,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAChG,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AAEtC,cAAc,qCAAqC,CAAA;AAEnD,cAAc,SAAS,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Plugin, UserConfig } from 'vite';
|
|
2
2
|
export declare function getServerConfigPlugin(): {
|
|
3
3
|
name: string;
|
|
4
|
-
configResolved(this: void, conf: Readonly<Omit<UserConfig, "worker" | "dev" | "
|
|
4
|
+
configResolved(this: void, conf: Readonly<Omit<UserConfig, "worker" | "dev" | "build" | "plugins" | "css" | "assetsInclude" | "optimizeDeps" | "environments"> & {
|
|
5
5
|
configFile: string | undefined;
|
|
6
6
|
configFileDependencies: string[];
|
|
7
7
|
inlineConfig: import("vite").InlineConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactNativeHMRPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/reactNativeHMRPlugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reactNativeHMRPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/reactNativeHMRPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAUlE,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,SAAS,EACT,IAAI,GACL,EAAE,iBAAiB,GAAG;IAAE,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE;;;EA4L7C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* Filter out plugins and plugin hooks that are not needed for (or will even break) React Native.
|
|
4
|
+
*/
|
|
5
|
+
export declare function filterPluginsForNative(plugins: Plugin[], { isNative }: {
|
|
6
|
+
isNative: boolean;
|
|
7
|
+
}): Plugin[];
|
|
8
|
+
//# sourceMappingURL=filterPluginsForNative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterPluginsForNative.d.ts","sourceRoot":"","sources":["../../src/utils/filterPluginsForNative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EAAE,EACjB,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,GAClC,MAAM,EAAE,CA0CV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/utils/fork/vite/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAGhB,cAAc,EACd,MAAM,EACN,MAAM,EAGN,cAAc,EACf,MAAM,MAAM,CAAA;AAKb,OAAO,KAAK,EAIV,eAAe,EAEf,aAAa,EAGb,WAAW,EAEX,SAAS,EAET,YAAY,EACZ,aAAa,EACd,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/utils/fork/vite/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAGhB,cAAc,EACd,MAAM,EACN,MAAM,EAGN,cAAc,EACf,MAAM,MAAM,CAAA;AAKb,OAAO,KAAK,EAIV,eAAe,EAEf,aAAa,EAGb,WAAW,EAEX,SAAS,EAET,YAAY,EACZ,aAAa,EACd,MAAM,QAAQ,CAAA;AASf;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,gBAAgB,EAC7B,UAAU,GAAE,cAAc,GAAG,KAAa,GACzC,OAAO,CAER;IACE,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CAChC,GAAG,CAAC,YAAY,GAAG,YAAY,EAAE,GAAG,aAAa,CAAC,CACpD,CAyTA;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,SAAS,EACpD,UAAU,EAAE,cAAc,GAAG,KAAK,EAClC,MAAM,EAAE,MAAM,GACb,aAAa,GAAG,aAAa,EAAE,GAAG,SAAS,CA2C7C;AAaD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,eAAe,EACrB,MAAM,EAAE,cAAc,GACrB,IAAI,CAwDN;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAyB9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOptimizeDeps.d.ts","sourceRoot":"","sources":["../../src/utils/getOptimizeDeps.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getOptimizeDeps.d.ts","sourceRoot":"","sources":["../../src/utils/getOptimizeDeps.ts"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;;;;;;;;;;;EA0KtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReactNativeBundle.d.ts","sourceRoot":"","sources":["../../src/utils/getReactNativeBundle.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAS3D,eAAO,IAAI,SAAS,QAAK,CAAA;AAIzB,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,GAAE;IAAE,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAGzE,
|
|
1
|
+
{"version":3,"file":"getReactNativeBundle.d.ts","sourceRoot":"","sources":["../../src/utils/getReactNativeBundle.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAS3D,eAAO,IAAI,SAAS,QAAK,CAAA;AAIzB,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,iBAAiB,EAC1B,QAAQ,GAAE;IAAE,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAGzE,mBAyJF"}
|
|
@@ -44,7 +44,7 @@ export declare function getReactNativeConfig(options: VXRNOptionsFilled, interna
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}>;
|
|
47
|
-
export declare function getReactNativeResolvedConfig(): Readonly<Omit<UserConfig, "worker" | "dev" | "
|
|
47
|
+
export declare function getReactNativeResolvedConfig(): Readonly<Omit<UserConfig, "worker" | "dev" | "build" | "plugins" | "css" | "assetsInclude" | "optimizeDeps" | "environments"> & {
|
|
48
48
|
configFile: string | undefined;
|
|
49
49
|
configFileDependencies: string[];
|
|
50
50
|
inlineConfig: InlineConfig;
|
package/dist/utils/loadEnv.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
async function loadEnv(root) {
|
|
4
|
-
const envPath = path.join(root, ".env");
|
|
5
|
-
if (!fs.existsSync(envPath)) return;
|
|
6
|
-
const result = (await import("dotenv")).config({ path: envPath });
|
|
7
|
-
if (result.error) throw result.error;
|
|
8
|
-
return !0;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
loadEnv
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=loadEnv.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/utils/loadEnv.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AAEjB,eAAsB,QAAQ,MAAc;AAC1C,QAAM,UAAU,KAAK,KAAK,MAAM,MAAM;AACtC,MAAI,CAAC,GAAG,WAAW,OAAO,EAAG;AAE7B,QAAM,UADS,MAAM,OAAO,QAAQ,GACd,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC9C,MAAI,OAAO,MAAO,OAAM,OAAO;AAC/B,SAAO;AACT;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/utils/loadEnv.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
async function loadEnv(root) {
|
|
4
|
-
const envPath = path.join(root, ".env");
|
|
5
|
-
if (!fs.existsSync(envPath)) return;
|
|
6
|
-
const result = (await import("dotenv")).config({
|
|
7
|
-
path: envPath
|
|
8
|
-
});
|
|
9
|
-
if (result.error) throw result.error;
|
|
10
|
-
return !0;
|
|
11
|
-
}
|
|
12
|
-
export { loadEnv };
|
|
13
|
-
//# sourceMappingURL=loadEnv.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["fs","path","loadEnv","root","envPath","join","existsSync","result","config","error"],"sources":["../../src/utils/loadEnv.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,EAAA,MAAQ;AACf,OAAOC,IAAA,MAAU;AAEjB,eAAsBC,QAAQC,IAAA,EAAc;EAC1C,MAAMC,OAAA,GAAUH,IAAA,CAAKI,IAAA,CAAKF,IAAA,EAAM,MAAM;EACtC,IAAI,CAACH,EAAA,CAAGM,UAAA,CAAWF,OAAO,GAAG;EAE7B,MAAMG,MAAA,IADS,MAAM,OAAO,QAAQ,GACdC,MAAA,CAAO;IAAEP,IAAA,EAAMG;EAAQ,CAAC;EAC9C,IAAIG,MAAA,CAAOE,KAAA,EAAO,MAAMF,MAAA,CAAOE,KAAA;EAC/B,OAAO;AACT","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
async function loadEnv(root) {
|
|
4
|
-
var envPath = path.join(root, ".env");
|
|
5
|
-
if (fs.existsSync(envPath)) {
|
|
6
|
-
var dotenv = await import("dotenv"), result = dotenv.config({
|
|
7
|
-
path: envPath
|
|
8
|
-
});
|
|
9
|
-
if (result.error) throw result.error;
|
|
10
|
-
return !0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
loadEnv
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=loadEnv.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/utils/Users/n8/one/packages/vxrn/src/utils/loadEnv.ts"],
|
|
4
|
-
"mappings": "AAAA,OAAOA,QAAQ;AACf,OAAOC,UAAU;AAEjB,eAAsBC,QAAQC,MAAY;AACxC,MAAMC,UAAUH,KAAKI,KAAKF,MAAM,MAAA;AAChC,MAAKH,GAAGM,WAAWF,OAAAA,GACnB;QAAMG,SAAS,MAAM,OAAO,QAAA,GACtBC,SAASD,OAAOE,OAAO;MAAER,MAAMG;IAAQ,CAAA;AAC7C,QAAII,OAAOE,MAAO,OAAMF,OAAOE;AAC/B,WAAO;;AACT;",
|
|
5
|
-
"names": ["fs", "path", "loadEnv", "root", "envPath", "join", "existsSync", "dotenv", "result", "config", "error"]
|
|
6
|
-
}
|
package/src/utils/loadEnv.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
|
|
4
|
-
export async function loadEnv(root: string) {
|
|
5
|
-
const envPath = path.join(root, '.env')
|
|
6
|
-
if (!fs.existsSync(envPath)) return
|
|
7
|
-
const dotenv = await import('dotenv')
|
|
8
|
-
const result = dotenv.config({ path: envPath })
|
|
9
|
-
if (result.error) throw result.error
|
|
10
|
-
return true
|
|
11
|
-
}
|
package/types/utils/loadEnv.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadEnv.d.ts","sourceRoot":"","sources":["../../src/utils/loadEnv.ts"],"names":[],"mappings":"AAGA,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,6BAOzC"}
|