one 2.20.0 → 2.21.0
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/index.cjs +2 -0
- package/dist/cjs/index.native.cjs +2 -0
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/link/linking.native.cjs +1 -1
- package/dist/cjs/link/linking.native.js +1 -1
- package/dist/cjs/link/linking.native.js.map +1 -1
- package/dist/cjs/router/router.cjs +4 -1
- package/dist/cjs/router/router.native.cjs +4 -1
- package/dist/cjs/router/router.native.js +4 -1
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/router/warmState.cjs +62 -4
- package/dist/cjs/router/warmState.native.cjs +78 -5
- package/dist/cjs/router/warmState.native.js +78 -5
- package/dist/cjs/router/warmState.native.js.map +1 -1
- package/dist/cjs/router/warmStatePlatform.native.cjs +1 -1
- package/dist/cjs/router/warmStatePlatform.native.js +1 -1
- package/dist/cjs/router/warmStatePlatform.native.js.map +1 -1
- package/dist/cjs/useIsRestored.cjs +30 -0
- package/dist/cjs/useIsRestored.native.cjs +32 -0
- package/dist/cjs/useIsRestored.native.js +34 -0
- package/dist/cjs/useIsRestored.native.js.map +1 -0
- package/dist/cjs/vite/one.cjs +1 -1
- package/dist/cjs/vite/one.native.cjs +8 -8
- package/dist/cjs/vite/one.native.js +8 -8
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/link/linking.native.js +1 -1
- package/dist/esm/link/linking.native.js.map +1 -1
- package/dist/esm/router/router.mjs +5 -2
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +5 -2
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/router/warmState.mjs +61 -5
- package/dist/esm/router/warmState.mjs.map +1 -1
- package/dist/esm/router/warmState.native.js +77 -6
- package/dist/esm/router/warmState.native.js.map +1 -1
- package/dist/esm/router/warmStatePlatform.native.js +1 -1
- package/dist/esm/router/warmStatePlatform.native.js.map +1 -1
- package/dist/esm/useIsRestored.mjs +11 -0
- package/dist/esm/useIsRestored.mjs.map +1 -0
- package/dist/esm/useIsRestored.native.js +11 -0
- package/dist/esm/useIsRestored.native.js.map +1 -0
- package/dist/esm/vite/one.mjs +1 -1
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +8 -8
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +13 -13
- package/src/index.ts +2 -0
- package/src/link/linking.native.ts +3 -3
- package/src/router/Route.tsx +13 -0
- package/src/router/router.ts +3 -1
- package/src/router/warmState.test.ts +80 -0
- package/src/router/warmState.ts +80 -8
- package/src/router/warmStatePlatform.native.ts +3 -1
- package/src/useIsRestored.ts +11 -0
- package/src/vite/one.ts +1 -1
- package/src/vite/types.ts +5 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/router/Route.d.ts +10 -0
- package/types/router/Route.d.ts.map +1 -1
- package/types/router/router.d.ts.map +1 -1
- package/types/router/warmState.d.ts +2 -0
- package/types/router/warmState.d.ts.map +1 -1
- package/types/router/warmStatePlatform.native.d.ts.map +1 -1
- package/types/useIsRestored.d.ts +6 -0
- package/types/useIsRestored.d.ts.map +1 -0
- package/types/vite/types.d.ts +5 -0
- package/types/vite/types.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warmStatePlatform.native.js","names":[],"sources":["cjs/router/warmStatePlatform.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar warmStatePlatform_native_exports = {};\n__export(warmStatePlatform_native_exports, {\n attachWarmStateLifecycle: () => attachWarmStateLifecycle,\n getNativeInitialURL: () => getNativeInitialURL\n});\nmodule.exports = __toCommonJS(warmStatePlatform_native_exports);\nvar import_react_native = require(\"react-native\");\nfunction attachWarmStateLifecycle(onBackground) {\n if (typeof (import_react_native.AppState === null || import_react_native.AppState === void 0 ? void 0 : import_react_native.AppState.addEventListener) !== \"function\") {\n return function() {\n };\n }\n var subscription = import_react_native.AppState.addEventListener(\"change\", function(nextState) {\n if (nextState === \"background\" || nextState === \"inactive\") {\n onBackground();\n }\n });\n return function() {\n var _subscription_remove;\n subscription === null || subscription === void 0 ? void 0 : (_subscription_remove = subscription.remove) === null || _subscription_remove === void 0 ? void 0 : _subscription_remove.call(subscription);\n };\n}\nfunction getNativeInitialURL() {\n if (typeof (import_react_native.Linking === null || import_react_native.Linking === void 0 ? void 0 : import_react_native.Linking.getInitialURL) !== \"function\") {\n return Promise.resolve(null);\n }\n return Promise.race([\n import_react_native.Linking.getInitialURL(),\n new Promise(function(resolve) {\n setTimeout(function() {\n return resolve(null);\n },
|
|
1
|
+
{"version":3,"file":"warmStatePlatform.native.js","names":[],"sources":["cjs/router/warmStatePlatform.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar warmStatePlatform_native_exports = {};\n__export(warmStatePlatform_native_exports, {\n attachWarmStateLifecycle: () => attachWarmStateLifecycle,\n getNativeInitialURL: () => getNativeInitialURL\n});\nmodule.exports = __toCommonJS(warmStatePlatform_native_exports);\nvar import_react_native = require(\"react-native\");\nfunction attachWarmStateLifecycle(onBackground) {\n if (typeof (import_react_native.AppState === null || import_react_native.AppState === void 0 ? void 0 : import_react_native.AppState.addEventListener) !== \"function\") {\n return function() {\n };\n }\n var subscription = import_react_native.AppState.addEventListener(\"change\", function(nextState) {\n if (nextState === \"background\" || nextState === \"inactive\") {\n onBackground();\n }\n });\n return function() {\n var _subscription_remove;\n subscription === null || subscription === void 0 ? void 0 : (_subscription_remove = subscription.remove) === null || _subscription_remove === void 0 ? void 0 : _subscription_remove.call(subscription);\n };\n}\nfunction getNativeInitialURL() {\n if (typeof (import_react_native.Linking === null || import_react_native.Linking === void 0 ? void 0 : import_react_native.Linking.getInitialURL) !== \"function\") {\n return Promise.resolve(null);\n }\n return Promise.race([\n import_react_native.Linking.getInitialURL(),\n new Promise(function(resolve) {\n setTimeout(function() {\n return resolve(null);\n }, 3e3);\n })\n ]);\n}\n//# sourceMappingURL=warmStatePlatform.native.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;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,KAAK,CAClB,oBAAoB,QAAQ,cAAc,GAC1C,IAAI,QAAQ,SAAS,SAAS;EAC5B,WAAW,WAAW;GACpB,OAAO,QAAQ,IAAI;EACrB,GAAG,GAAG;CACR,CAAC,CACH,CAAC;AACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// dist/cjs/useIsRestored.js
|
|
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) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var useIsRestored_exports = {};
|
|
23
|
+
__export(useIsRestored_exports, { useIsRestored: () => useIsRestored });
|
|
24
|
+
module.exports = __toCommonJS(useIsRestored_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var import_warmState = require("./router/warmState.cjs");
|
|
27
|
+
function useIsRestored() {
|
|
28
|
+
const [restored] = (0, import_react.useState)(import_warmState.isRestoredLaunch);
|
|
29
|
+
return restored;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// dist/cjs/useIsRestored.native.js
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var useIsRestored_exports = {};
|
|
25
|
+
__export(useIsRestored_exports, { useIsRestored: () => useIsRestored });
|
|
26
|
+
module.exports = __toCommonJS(useIsRestored_exports);
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_warmState = require("./router/warmState.native.js");
|
|
29
|
+
function useIsRestored() {
|
|
30
|
+
var [restored] = (0, import_react.useState)(import_warmState.isRestoredLaunch);
|
|
31
|
+
return restored;
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// dist/cjs/useIsRestored.native.js
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var useIsRestored_exports = {};
|
|
25
|
+
__export(useIsRestored_exports, { useIsRestored: () => useIsRestored });
|
|
26
|
+
module.exports = __toCommonJS(useIsRestored_exports);
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_warmState = require("./router/warmState.native.js");
|
|
29
|
+
function useIsRestored() {
|
|
30
|
+
var [restored] = (0, import_react.useState)(import_warmState.isRestoredLaunch);
|
|
31
|
+
return restored;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=useIsRestored.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsRestored.native.js","names":[],"sources":["cjs/useIsRestored.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useIsRestored_exports = {};\n__export(useIsRestored_exports, {\n useIsRestored: () => useIsRestored\n});\nmodule.exports = __toCommonJS(useIsRestored_exports);\nvar import_react = require(\"react\");\nvar import_warmState = require(\"./router/warmState\");\nfunction useIsRestored() {\n var [restored] = (0, import_react.useState)(import_warmState.isRestoredLaunch);\n return restored;\n}\n//# sourceMappingURL=useIsRestored.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB,EAC9B,qBAAqB,cACvB,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,mBAAmB,QAAQ,8BAAoB;AACnD,SAAS,gBAAgB;CACvB,IAAI,CAAC,aAAa,GAAG,aAAa,SAAQ,CAAE,iBAAiB,gBAAgB;CAC7E,OAAO;AACT"}
|
package/dist/cjs/vite/one.cjs
CHANGED
|
@@ -650,7 +650,7 @@ function one(options = {}) {
|
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
652
|
globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;
|
|
653
|
-
const flags = {};
|
|
653
|
+
const flags = { warmStart: options.router?.restore };
|
|
654
654
|
const routeIndex = (0, import_routeIndex.createRouteIndex)({
|
|
655
655
|
routerRoot: import_node_path.default.resolve(root, routerRoot),
|
|
656
656
|
ignoredRouteFiles: options.router?.ignoredRouteFiles
|
|
@@ -77,7 +77,7 @@ globalThis.__vxrnEnableNativeEnv = true;
|
|
|
77
77
|
function one() {
|
|
78
78
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
79
79
|
var _ref;
|
|
80
|
-
var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_web1;
|
|
80
|
+
var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_router2, _options_web1;
|
|
81
81
|
(0, import_setServerGlobals.setServerGlobals)();
|
|
82
82
|
var routerRoot = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);
|
|
83
83
|
var nativeDisabled = options.native === false;
|
|
@@ -89,7 +89,7 @@ function one() {
|
|
|
89
89
|
globalThis.__vxrnEnableNativeEnv = false;
|
|
90
90
|
}
|
|
91
91
|
var metroOptions = (function() {
|
|
92
|
-
var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions,
|
|
92
|
+
var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router5, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;
|
|
93
93
|
if (nativeDisabled) return null;
|
|
94
94
|
if ((0, import_nativeBundler.resolveNativeBundler)({ bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler }) !== "metro") {
|
|
95
95
|
var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;
|
|
@@ -105,7 +105,7 @@ function one() {
|
|
|
105
105
|
var defaultMetroOptions = (0, import_getViteMetroPluginOptions.getViteMetroPluginOptions)({
|
|
106
106
|
projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),
|
|
107
107
|
relativeRouterRoot: routerRoot2,
|
|
108
|
-
ignoredRouteFiles: (
|
|
108
|
+
ignoredRouteFiles: (_options_router5 = options.router) === null || _options_router5 === void 0 ? void 0 : _options_router5.ignoredRouteFiles,
|
|
109
109
|
linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,
|
|
110
110
|
userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,
|
|
111
111
|
setupFile: options.setupFile
|
|
@@ -791,17 +791,17 @@ function one() {
|
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;
|
|
794
|
-
var flags = {};
|
|
794
|
+
var flags = { warmStart: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.restore };
|
|
795
795
|
var routeIndex = (0, import_routeIndex.createRouteIndex)({
|
|
796
796
|
routerRoot: import_path.default.resolve(root, routerRoot),
|
|
797
|
-
ignoredRouteFiles: (
|
|
797
|
+
ignoredRouteFiles: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.ignoredRouteFiles
|
|
798
798
|
});
|
|
799
799
|
if (!nativeDisabled) {
|
|
800
|
-
var
|
|
800
|
+
var _options_router3, _options_router4;
|
|
801
801
|
globalThis.__vxrnNativeEntryConfig = {
|
|
802
802
|
routerRoot,
|
|
803
|
-
ignoredRouteFiles: (
|
|
804
|
-
linking: (
|
|
803
|
+
ignoredRouteFiles: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.ignoredRouteFiles,
|
|
804
|
+
linking: (_options_router4 = options.router) === null || _options_router4 === void 0 ? void 0 : _options_router4.linking,
|
|
805
805
|
setupFile: options.setupFile,
|
|
806
806
|
flags,
|
|
807
807
|
app: nativeApp
|
|
@@ -77,7 +77,7 @@ globalThis.__vxrnEnableNativeEnv = true;
|
|
|
77
77
|
function one() {
|
|
78
78
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
79
79
|
var _ref;
|
|
80
|
-
var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_web1;
|
|
80
|
+
var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_router2, _options_web1;
|
|
81
81
|
(0, import_setServerGlobals.setServerGlobals)();
|
|
82
82
|
var routerRoot = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);
|
|
83
83
|
var nativeDisabled = options.native === false;
|
|
@@ -89,7 +89,7 @@ function one() {
|
|
|
89
89
|
globalThis.__vxrnEnableNativeEnv = false;
|
|
90
90
|
}
|
|
91
91
|
var metroOptions = (function() {
|
|
92
|
-
var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions,
|
|
92
|
+
var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router5, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;
|
|
93
93
|
if (nativeDisabled) return null;
|
|
94
94
|
if ((0, import_nativeBundler.resolveNativeBundler)({ bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler }) !== "metro") {
|
|
95
95
|
var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;
|
|
@@ -105,7 +105,7 @@ function one() {
|
|
|
105
105
|
var defaultMetroOptions = (0, import_getViteMetroPluginOptions.getViteMetroPluginOptions)({
|
|
106
106
|
projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),
|
|
107
107
|
relativeRouterRoot: routerRoot2,
|
|
108
|
-
ignoredRouteFiles: (
|
|
108
|
+
ignoredRouteFiles: (_options_router5 = options.router) === null || _options_router5 === void 0 ? void 0 : _options_router5.ignoredRouteFiles,
|
|
109
109
|
linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,
|
|
110
110
|
userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,
|
|
111
111
|
setupFile: options.setupFile
|
|
@@ -791,17 +791,17 @@ function one() {
|
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;
|
|
794
|
-
var flags = {};
|
|
794
|
+
var flags = { warmStart: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.restore };
|
|
795
795
|
var routeIndex = (0, import_routeIndex.createRouteIndex)({
|
|
796
796
|
routerRoot: import_path.default.resolve(root, routerRoot),
|
|
797
|
-
ignoredRouteFiles: (
|
|
797
|
+
ignoredRouteFiles: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.ignoredRouteFiles
|
|
798
798
|
});
|
|
799
799
|
if (!nativeDisabled) {
|
|
800
|
-
var
|
|
800
|
+
var _options_router3, _options_router4;
|
|
801
801
|
globalThis.__vxrnNativeEntryConfig = {
|
|
802
802
|
routerRoot,
|
|
803
|
-
ignoredRouteFiles: (
|
|
804
|
-
linking: (
|
|
803
|
+
ignoredRouteFiles: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.ignoredRouteFiles,
|
|
804
|
+
linking: (_options_router4 = options.router) === null || _options_router4 === void 0 ? void 0 : _options_router4.linking,
|
|
805
805
|
setupFile: options.setupFile,
|
|
806
806
|
flags,
|
|
807
807
|
app: nativeApp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one.native.js","names":[],"sources":["cjs/vite/one.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n one: () => one\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_compiler = require(\"@vxrn/compiler\");\nvar import_resolve = require(\"@vxrn/resolve\");\nvar import_utils = require(\"@vxrn/utils\");\nvar import_events = __toESM(require(\"events\"), 1);\nvar import_fs = require(\"fs\");\nvar import_path = __toESM(require(\"path\"), 1);\nvar import_filter = require(\"rolldown/filter\");\nvar import_vite = require(\"vite\");\nvar import_vxrn = require(\"vxrn\");\nvar import_vite_plugin = __toESM(require(\"vxrn/vite-plugin\"), 1);\nvar import_constants = require(\"../constants\");\nvar import_getViteMetroPluginOptions = require(\"../metro-config/getViteMetroPluginOptions\");\nvar import_setServerGlobals = require(\"../server/setServerGlobals\");\nvar import_getRouterRootFromOneOptions = require(\"../utils/getRouterRootFromOneOptions\");\nvar import_routeIndex = require(\"../utils/routeIndex\");\nvar import_absorbedPackages = require(\"../utils/absorbedPackages\");\nvar import_ensureTsConfig = require(\"./ensureTsConfig\");\nvar import_loadConfig = require(\"./loadConfig\");\nvar import_nativeBundler = require(\"./nativeBundler\");\nvar import_bundledDevPlugin = require(\"./plugins/bundledDevPlugin\");\nvar import_clientTreeShakePlugin = require(\"./plugins/clientTreeShakePlugin\");\nvar import_devtoolsPlugin = require(\"./plugins/devtoolsPlugin\");\nvar import_fileSystemRouterPlugin = require(\"./plugins/fileSystemRouterPlugin\");\nvar import_fixDependenciesPlugin = require(\"./plugins/fixDependenciesPlugin\");\nvar import_generateFileSystemRouteTypesPlugin = require(\"./plugins/generateFileSystemRouteTypesPlugin\");\nvar import_loaderJSXPlugin = require(\"./plugins/loaderJSXPlugin\");\nvar import_loaderSearchSchemasPlugin = require(\"./plugins/loaderSearchSchemasPlugin\");\nvar import_criticalCSSPlugin = require(\"./plugins/criticalCSSPlugin\");\nvar import_imageDataPlugin = require(\"./plugins/imageDataPlugin\");\nvar import_routeModuleHmrPlugin = require(\"./plugins/routeModuleHmrPlugin\");\nvar import_sourceInspectorPlugin = require(\"./plugins/sourceInspectorPlugin\");\nvar import_swiftPackagePlugin = require(\"./plugins/swiftPackagePlugin\");\nvar import_iosLinkSetPlugin = require(\"./plugins/iosLinkSetPlugin\");\nvar import_iosSdkPlugin = require(\"./plugins/iosSdkPlugin\");\nvar import_kotlinSourcePlugin = require(\"./plugins/kotlinSourcePlugin\");\nvar import_SSRCSSPlugin = require(\"./plugins/SSRCSSPlugin\");\nvar import_virtualEntryConstants = require(\"./plugins/virtualEntryConstants\");\nvar import_virtualEntryPlugin = require(\"./plugins/virtualEntryPlugin\");\nvar import_environmentGuardPlugin = require(\"./plugins/environmentGuardPlugin\");\nvar import_useDomPlugin = require(\"./plugins/useDomPlugin\");\nvar import_cloudflareWranglerConfig = require(\"./cloudflareWranglerConfig\");\nvar RN_DEEP_IMPORT_RE = /^react-native\\/Libraries\\/|react-native-web(-lite)?\\/.*\\/Libraries\\//;\nimport_events.default.setMaxListeners(1e3);\nglobalThis.__vxrnEnableNativeEnv = true;\nfunction one() {\n var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var _ref;\n var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_web1;\n (0, import_setServerGlobals.setServerGlobals)();\n var routerRoot = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);\n var nativeDisabled = options.native === false;\n var nativeOptions = options.native === false ? void 0 : options.native;\n var nativeAppName = (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_app = nativeOptions.app) === null || _nativeOptions_app === void 0 ? void 0 : _nativeOptions_app.name) || (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.key);\n var nativeApp = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.app;\n var nativeAppVersion = nativeApp === null || nativeApp === void 0 ? void 0 : nativeApp.version;\n if (nativeDisabled) {\n globalThis.__vxrnEnableNativeEnv = false;\n }\n var metroOptions = (function() {\n var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router4, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;\n if (nativeDisabled) return null;\n if ((0, import_nativeBundler.resolveNativeBundler)({\n bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler\n }) !== \"metro\") {\n var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n if ((dropped === null || dropped === void 0 ? void 0 : dropped.babelConfig) || (dropped === null || dropped === void 0 ? void 0 : dropped.babelConfigOverrides)) {\n console.warn(`[one] native.bundlerOptions configures babel plugins, but native.bundler is \"${nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler}\", which runs no babel. Those plugins will not run and whatever they were rewriting will reach the bundle untransformed.`);\n }\n return null;\n }\n if (process.env.ONE_METRO_MODE) {\n console.info(\"ONE_METRO_MODE environment variable is set, enabling Metro mode\");\n }\n var routerRoot2 = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);\n var defaultMetroOptions = (0, import_getViteMetroPluginOptions.getViteMetroPluginOptions)({\n projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),\n relativeRouterRoot: routerRoot2,\n ignoredRouteFiles: (_options_router4 = options.router) === null || _options_router4 === void 0 ? void 0 : _options_router4.ignoredRouteFiles,\n linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,\n userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,\n setupFile: options.setupFile\n });\n var userMetroOptions = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n var babelConfig = {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.babelConfig,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.babelConfig\n };\n return {\n ...defaultMetroOptions,\n ...userMetroOptions,\n defaultConfigOverrides: defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.defaultConfigOverrides,\n // defaultConfigOverrides is merged by getViteMetroPluginOptions, so we need to set it here again.\n argv: {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.argv,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.argv\n },\n babelConfig: {\n ...babelConfig,\n plugins: [\n ...babelConfig.plugins || [],\n ...((_options_react2 = options.react) === null || _options_react2 === void 0 ? void 0 : _options_react2.compiler) === true || ((_options_react1 = options.react) === null || _options_react1 === void 0 ? void 0 : _options_react1.compiler) === \"native\" ? [\n \"babel-plugin-react-compiler\"\n ] : []\n ]\n },\n mainModuleName: \"one/metro-entry\",\n // allow env var to enable lazy startup\n startup: process.env.ONE_METRO_LAZY ? \"lazy\" : userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.startup\n };\n })();\n var vxrnPlugins = [];\n if (!process.env.IS_VXRN_CLI) {\n console.warn(\"Experimental: running VxRN as a Vite plugin. This is not yet stable.\");\n vxrnPlugins.push((0, import_vite_plugin.default)({\n metro: metroOptions,\n disableNative: nativeDisabled,\n patches: options.patches\n }));\n } else {\n if (!globalThis.__oneOptions) {\n (0, import_loadConfig.setOneOptions)(options);\n globalThis[\"__vxrnPluginConfig__\"] = options;\n globalThis[\"__vxrnMetroOptions__\"] = metroOptions;\n return [];\n }\n }\n if (((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== false) {\n void (0, import_ensureTsConfig.ensureTSConfig)();\n }\n var vxrnOptions = (0, import_vxrn.getOptionsFilled)();\n var root = (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.root) || process.cwd();\n var compiler = (_options_react = options.react) === null || _options_react === void 0 ? void 0 : _options_react.compiler;\n if (compiler) {\n (0, import_compiler.configureVXRNCompilerPlugin)({\n enableCompiler: (\n // pass through object config, regex, or function directly\n typeof compiler === \"object\" || typeof compiler === \"function\" ? compiler : compiler === \"native\" ? [\n \"ios\",\n \"android\"\n ] : compiler === \"web\" ? [\n \"ssr\",\n \"client\"\n ] : true\n )\n });\n }\n var autoDepsOptions = (_options_ssr = options.ssr) === null || _options_ssr === void 0 ? void 0 : _options_ssr.autoDepsOptimization;\n var dedupeSymlinks = (_ref = (_options_ssr1 = options.ssr) === null || _options_ssr1 === void 0 ? void 0 : _options_ssr1.dedupeSymlinkedModules) !== null && _ref !== void 0 ? _ref : false;\n var ssrDedup_optimizedPackages = null;\n var ssrDedup_projectRoot = \"\";\n var ssrSymlinkDedupPlugin = {\n name: \"one:ssr-symlink-dedup\",\n enforce: \"pre\",\n configResolved(config) {\n var _config_ssr_optimizeDeps, _config_ssr;\n if (!dedupeSymlinks) return;\n ssrDedup_projectRoot = config.root || process.cwd();\n var ssrInclude = (_config_ssr = config.ssr) === null || _config_ssr === void 0 ? void 0 : (_config_ssr_optimizeDeps = _config_ssr.optimizeDeps) === null || _config_ssr_optimizeDeps === void 0 ? void 0 : _config_ssr_optimizeDeps.include;\n if (!(ssrInclude === null || ssrInclude === void 0 ? void 0 : ssrInclude.length)) return;\n ssrDedup_optimizedPackages = /* @__PURE__ */ new Set();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = ssrInclude[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.startsWith(\"@\")) {\n var parts = entry.split(\"/\");\n ssrDedup_optimizedPackages.add(`${parts[0]}/${parts[1]}`);\n } else {\n ssrDedup_optimizedPackages.add(entry.split(\"/\")[0]);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n async resolveId(source, importer, options2) {\n if (!dedupeSymlinks) return;\n if (source[0] === \".\" || source[0] === \"/\") return;\n var pkgName;\n var subpath = null;\n if (source.startsWith(\"@\")) {\n var parts = source.split(\"/\");\n pkgName = parts.length >= 2 ? `${parts[0]}/${parts[1]}` : source;\n if (parts.length > 2) subpath = `./${parts.slice(2).join(\"/\")}`;\n } else {\n var parts1 = source.split(\"/\");\n pkgName = parts1[0];\n if (parts1.length > 1) subpath = `./${parts1.slice(1).join(\"/\")}`;\n }\n var resolved = await this.resolve(source, importer, {\n ...options2,\n skipSelf: true\n });\n if (!(resolved === null || resolved === void 0 ? void 0 : resolved.id)) return;\n if (resolved.id.includes(\"/node_modules/\")) return;\n var _$path = await import(\"path\");\n var fs = await import(\"fs\");\n var { join, dirname } = _$path;\n var { realpathSync, existsSync: existsSync2, readFileSync: readFileSync2 } = fs;\n var dir = ssrDedup_projectRoot;\n while (dir !== dirname(dir)) {\n var nmPkgDir = join(dir, \"node_modules\", pkgName);\n if (existsSync2(nmPkgDir)) {\n if (subpath) {\n try {\n var _pkg_exports;\n var pkg = JSON.parse(readFileSync2(join(nmPkgDir, \"package.json\"), \"utf8\"));\n var exportEntry = (_pkg_exports = pkg.exports) === null || _pkg_exports === void 0 ? void 0 : _pkg_exports[subpath];\n if (exportEntry && typeof exportEntry === \"object\") {\n var target = exportEntry.import || exportEntry.module || exportEntry.default;\n if (target) {\n var fullPath = join(nmPkgDir, target);\n if (existsSync2(fullPath))\n return {\n id: (0, import_vite.normalizePath)(fullPath),\n external: resolved.external\n };\n }\n }\n } catch (unused) {\n }\n }\n var realPkgDir = (0, import_vite.normalizePath)(realpathSync(nmPkgDir));\n if (resolved.id.startsWith(realPkgDir)) {\n var relativePart = resolved.id.slice(realPkgDir.length);\n return {\n id: (0, import_vite.normalizePath)(nmPkgDir) + relativePart,\n external: resolved.external\n };\n }\n break;\n }\n dir = dirname(dir);\n }\n }\n };\n var withAbsorbedAliases = function withAbsorbedAliases2(alias) {\n var root2 = process.cwd();\n return {\n ...alias,\n native: {\n ...(0, import_absorbedPackages.absorbedPackageAliases)(root2, \"native\"),\n ...alias === null || alias === void 0 ? void 0 : alias.native\n }\n };\n };\n var createAliasPlugin = function createAliasPlugin2(alias, nativePlatform) {\n var resolveMap = function resolveMap2(map) {\n if (!map) return null;\n var out = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(map)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [key, value] = _step.value;\n try {\n out[key] = import_path.default.isAbsolute(value) ? value : (0, import_resolve.resolvePath)(value);\n } catch (unused) {\n out[key] = value;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return out;\n };\n var resolved = {\n web: resolveMap(alias.web),\n native: resolveMap(alias.native),\n client: resolveMap(alias.client),\n ssr: resolveMap(alias.ssr),\n ios: resolveMap(alias.ios),\n android: resolveMap(alias.android)\n };\n var aliasKeys = [\n ...new Set(Object.values(resolved).flatMap(function(m) {\n return m ? Object.keys(m) : [];\n }))\n ];\n var aliasFilter = aliasKeys.length ? new RegExp(`^(?:${aliasKeys.map(function(k) {\n return k.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n }).join(\"|\")})$`) : /(?!)/;\n return {\n name: \"one:alias\",\n enforce: \"pre\",\n // vite's dep optimizer resolves its include list without plugins, so the\n // absorbed packages also go in resolve.alias, which only web resolves with\n config: nativePlatform ? void 0 : function() {\n return {\n resolve: {\n alias: Object.entries((0, import_absorbedPackages.absorbedPackageAliases)(process.cwd(), \"web\")).map(function(param) {\n var [name, replacement] = param;\n return {\n find: new RegExp(`^${name}$`),\n replacement\n };\n })\n }\n };\n },\n resolveId: {\n filter: {\n id: aliasFilter\n },\n handler(source) {\n var _this_environment;\n var env = nativePlatform !== null && nativePlatform !== void 0 ? nativePlatform : (_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name;\n var specific = env ? resolved[env] : null;\n if (specific && source in specific) {\n var id = specific[source];\n return {\n id,\n external: false,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id)\n };\n }\n var isWeb = !env || env === \"client\" || env === \"ssr\";\n var general = isWeb ? resolved.web : resolved.native;\n if (general && source in general) {\n var id1 = general[source];\n return {\n id: id1,\n external: false,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id1)\n };\n }\n }\n }\n };\n };\n var domPlugin = (0, import_useDomPlugin.useDOMPlugin)({\n root,\n routerRoot,\n ignoredRouteFiles: (_options_router = options.router) === null || _options_router === void 0 ? void 0 : _options_router.ignoredRouteFiles,\n metro: !!metroOptions,\n browserPlugins: [\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n (0, import_environmentGuardPlugin.environmentGuardPlugin)(options.environmentGuards)\n ]\n });\n var devAndProdPlugins = [\n domPlugin,\n {\n name: \"one:config\",\n __get: options\n },\n {\n name: \"one:env-prefix\",\n config(userConfig) {\n if (userConfig.envPrefix) return;\n return {\n envPrefix: [\n \"VITE_\",\n \"ONE_PUBLIC_\",\n \"EXPO_PUBLIC_\"\n ]\n };\n }\n },\n (0, import_bundledDevPlugin.bundledDevPlugin)(!!((_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.experimentalBundledDev)),\n (0, import_environmentGuardPlugin.environmentGuardPlugin)(options.environmentGuards),\n (0, import_criticalCSSPlugin.criticalCSSPlugin)(),\n (0, import_imageDataPlugin.imageDataPlugin)(),\n {\n name: \"one-define-client-env\",\n async config(userConfig, env) {\n var _ref2, _ref1, _ref22;\n var clientEnvDefine = options.skipEnv ? {} : (await (0, import_vxrn.loadEnv)((_ref2 = (_ref1 = (_ref22 = vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.mode) !== null && _ref22 !== void 0 ? _ref22 : userConfig === null || userConfig === void 0 ? void 0 : userConfig.mode) !== null && _ref1 !== void 0 ? _ref1 : env === null || env === void 0 ? void 0 : env.mode) !== null && _ref2 !== void 0 ? _ref2 : \"development\", process.cwd(), userConfig === null || userConfig === void 0 ? void 0 : userConfig.envPrefix)).clientEnvDefine;\n return {\n define: {\n ...clientEnvDefine,\n ...process.env.ONE_DEBUG_ROUTER && {\n \"process.env.ONE_DEBUG_ROUTER\": JSON.stringify(process.env.ONE_DEBUG_ROUTER)\n }\n }\n };\n }\n },\n ...autoDepsOptions === false ? [] : [\n (0, import_vxrn.autoDepOptimizePlugin)({\n onScannedDeps(param) {\n var { hasReanimated, hasNativewind } = param;\n var _ref2;\n (0, import_compiler.configureVXRNCompilerPlugin)({\n enableReanimated: hasReanimated,\n enableNativeCSS: (_ref2 = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.css) !== null && _ref2 !== void 0 ? _ref2 : hasNativewind,\n enableNativewind: hasNativewind\n });\n },\n root,\n include: /node_modules/,\n ...autoDepsOptions === true ? {} : autoDepsOptions\n })\n ],\n ...((_options_config1 = options.config) === null || _options_config1 === void 0 ? void 0 : _options_config1.tsConfigPaths) === false ? [] : [\n (function() {\n var mappings = [];\n function loadMappings(resolvedRoot) {\n try {\n var _config_compilerOptions, _config_compilerOptions1;\n var configPath = import_path.default.resolve(resolvedRoot, \"tsconfig.json\");\n if (!(0, import_fs.existsSync)(configPath)) return;\n var raw = (0, import_fs.readFileSync)(configPath, \"utf-8\");\n var stripped = raw.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, function(m, g) {\n return g ? \"\" : m;\n });\n var config = JSON.parse(stripped);\n var paths = config === null || config === void 0 ? void 0 : (_config_compilerOptions = config.compilerOptions) === null || _config_compilerOptions === void 0 ? void 0 : _config_compilerOptions.paths;\n var baseUrl = (config === null || config === void 0 ? void 0 : (_config_compilerOptions1 = config.compilerOptions) === null || _config_compilerOptions1 === void 0 ? void 0 : _config_compilerOptions1.baseUrl) || \".\";\n if (!paths) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(paths)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [pattern, targets] = _step.value;\n var target = targets[0];\n if (!target) continue;\n if (pattern.endsWith(\"/*\")) {\n var resolved = import_path.default.resolve(resolvedRoot, baseUrl, target.slice(0, -1));\n mappings.push({\n prefix: pattern.slice(0, -1),\n replacement: resolved.endsWith(\"/\") ? resolved : resolved + \"/\",\n wildcard: true\n });\n } else {\n mappings.push({\n prefix: pattern,\n replacement: import_path.default.resolve(resolvedRoot, baseUrl, target),\n wildcard: false\n });\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } catch (unused) {\n }\n }\n loadMappings(root);\n var tsconfigPathsFilter = mappings.length ? new RegExp(mappings.map(function(m) {\n return `^${m.prefix.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")}${m.wildcard ? \"\" : \"$\"}`;\n }).join(\"|\")) : /^[^./]/;\n return {\n name: \"one:tsconfig-paths\",\n enforce: \"pre\",\n config() {\n return {\n resolve: {\n tsconfigPaths: true\n }\n };\n },\n configResolved(config) {\n if (mappings.length === 0) {\n loadMappings(config.root);\n }\n },\n resolveId: {\n filter: {\n id: tsconfigPathsFilter\n },\n handler(source) {\n var resolved = function resolved2(id) {\n return {\n id,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id)\n };\n };\n var jsExts = [\n \".ts\",\n \".tsx\",\n \".js\",\n \".jsx\",\n \".mts\",\n \".mjs\",\n \".cjs\",\n \".cts\"\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var m = _step.value;\n var candidate = void 0;\n if (m.wildcard) {\n if (source.startsWith(m.prefix)) {\n candidate = m.replacement + source.slice(m.prefix.length);\n }\n } else if (source === m.prefix) {\n candidate = m.replacement;\n }\n if (!candidate) continue;\n if (jsExts.includes(import_path.default.extname(candidate))) return resolved(candidate);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = jsExts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var e = _step1.value;\n if ((0, import_fs.existsSync)(candidate + e)) return resolved(candidate + e);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = jsExts[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var e1 = _step2.value;\n if ((0, import_fs.existsSync)(candidate + \"/index\" + e1)) return resolved(candidate + \"/index\" + e1);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n return resolved(candidate);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }\n };\n })()\n ],\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n {\n // rolldown fails on deep react-native/Libraries/* imports during dep pre-bundling.\n // these are native-only paths that don't exist in react-native-web.\n name: \"one:redirect-rn-deep-imports\",\n enforce: \"pre\",\n // rust-side filter matching the two source patterns below, so the ~24k\n // non-matching imports in a build never enter js at all\n resolveId: {\n filter: {\n id: RN_DEEP_IMPORT_RE\n },\n handler(source) {\n var _this_environment, _this_environment1, _this_environment2;\n if (((_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name) === \"client\" || ((_this_environment1 = this.environment) === null || _this_environment1 === void 0 ? void 0 : _this_environment1.name) === \"ssr\" || ((_this_environment2 = this.environment) === null || _this_environment2 === void 0 ? void 0 : _this_environment2.name) === \"worker\") {\n return \"\\0rn-empty-module\";\n }\n }\n },\n load: {\n filter: {\n id: (0, import_filter.exactRegex)(\"\\0rn-empty-module\")\n },\n handler() {\n return \"export default {}; export {};\";\n }\n }\n },\n {\n name: \"one-aliases\",\n enforce: \"pre\",\n config() {\n var tslibLitePath = \"\";\n try {\n tslibLitePath = (0, import_resolve.resolvePath)(\"@vxrn/tslib-lite\", process.cwd());\n } catch (err) {\n console.info(`Can't find tslib-lite, falling back to tslib`);\n if (process.env.DEBUG) {\n console.error(err);\n }\n }\n return {\n resolve: {\n alias: {\n // testing getting transition between routes working\n // 'use-sync-external-store/with-selector': resolvePath(\n // 'use-sync-external-store/shim/with-selector'\n // ),\n ...tslibLitePath && {\n tslib: tslibLitePath\n }\n }\n }\n };\n }\n },\n {\n name: \"one:init-config\",\n config() {\n var _options_web2, _options_web12, _options_web22, _options_web3;\n var setupFileDefines = (function() {\n if (!options.setupFile) return {};\n var setupFiles;\n if (typeof options.setupFile === \"string\") {\n setupFiles = {\n client: options.setupFile,\n server: options.setupFile,\n ios: options.setupFile,\n android: options.setupFile\n };\n } else if (\"native\" in options.setupFile) {\n setupFiles = {\n client: options.setupFile.client,\n server: options.setupFile.server,\n ios: options.setupFile.native,\n android: options.setupFile.native\n };\n } else {\n setupFiles = options.setupFile;\n }\n return {\n ...setupFiles.client && {\n \"process.env.ONE_SETUP_FILE_CLIENT\": JSON.stringify(setupFiles.client)\n },\n ...setupFiles.server && {\n \"process.env.ONE_SETUP_FILE_SERVER\": JSON.stringify(setupFiles.server)\n },\n ...setupFiles.ios && {\n \"process.env.ONE_SETUP_FILE_IOS\": JSON.stringify(setupFiles.ios)\n },\n ...setupFiles.android && {\n \"process.env.ONE_SETUP_FILE_ANDROID\": JSON.stringify(setupFiles.android)\n }\n };\n })();\n var serverURL = process.env.ONE_SERVER_URL || (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.server.url);\n return {\n // Platform env defined at root level for client (workaround for Vite bug with environment.client.define)\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"client\"),\n ...setupFileDefines,\n ...((_options_web2 = options.web) === null || _options_web2 === void 0 ? void 0 : _options_web2.defaultRenderMode) && {\n \"process.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode),\n \"import.meta.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode)\n },\n ...process.env.NODE_ENV !== \"production\" && serverURL && {\n \"process.env.ONE_SERVER_URL\": JSON.stringify(serverURL),\n \"import.meta.env.ONE_SERVER_URL\": JSON.stringify(serverURL)\n },\n ...((_options_web12 = options.web) === null || _options_web12 === void 0 ? void 0 : _options_web12.linkPrefetch) && {\n \"process.env.ONE_LINK_PREFETCH\": JSON.stringify(options.web.linkPrefetch)\n },\n ...((_options_web22 = options.web) === null || _options_web22 === void 0 ? void 0 : _options_web22.skewProtection) !== void 0 && {\n \"process.env.ONE_SKEW_PROTECTION\": JSON.stringify(options.web.skewProtection === true ? \"true\" : options.web.skewProtection === false ? \"false\" : options.web.skewProtection)\n },\n // 'proactive'\n ...((_options_web3 = options.web) === null || _options_web3 === void 0 ? void 0 : _options_web3.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES\": JSON.stringify(options.web.suspendRoutes ? \"1\" : \"0\")\n }\n },\n environments: {\n ssr: {\n define: (0, import_utils.getPlatformEnvDefine)(\"ssr\")\n },\n ios: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"ios\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n android: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"android\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n macos: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"macos\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n linux: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"linux\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n }\n },\n ssr: {\n // ensure server-only/client-only go through vite so our environmentGuardPlugin can handle them\n noExternal: [\n \"server-only\",\n \"client-only\"\n ]\n }\n };\n }\n },\n {\n name: \"one:tamagui\",\n config() {\n return {\n define: {\n // safe to set because it only affects web in tamagui, and one is always react 19\n \"process.env.TAMAGUI_REACT_19\": '\"1\"'\n },\n environments: {\n ssr: {\n define: {\n \"process.env.TAMAGUI_IS_SERVER\": '\"1\"',\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n ios: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n android: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n macos: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n linux: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n }\n }\n };\n }\n },\n (0, import_routeModuleHmrPlugin.createRouteModuleHmrPlugin)(routerRoot),\n // Plugins may transform the source code and add imports of `react/jsx-dev-runtime`, which won't be discovered by Vite's initial `scanImports` since the implementation is using ESbuild where such plugins are not executed.\n // Thus, if the project has a valid `react/jsx-dev-runtime` import, we tell Vite to optimize it, so Vite won't only discover it on the next page load and trigger a full reload.\n {\n name: \"one:optimize-dev-deps\",\n config(_, env) {\n if (env.mode === \"development\") {\n return {\n optimizeDeps: {\n include: [\n \"react/jsx-dev-runtime\",\n \"react/compiler-runtime\"\n ]\n }\n };\n }\n }\n },\n {\n name: \"one:remove-server-from-client\",\n enforce: \"pre\",\n // both conditions are rust-side: only one-server-only modules that\n // actually contain the import cross into js\n transform: {\n filter: {\n id: /one-server-only/,\n code: 'import { AsyncLocalStorage } from \"node:async_hooks\"'\n },\n handler(code) {\n if (this.environment.name !== \"client\") return;\n return code.replace(`import { AsyncLocalStorage } from \"node:async_hooks\"`, `class AsyncLocalStorage {}`);\n }\n }\n },\n // packages in resolve.dedupe must also be pre-bundled for SSR to prevent\n // duplicate module instances (e.g. symlinked monorepo packages resolving\n // to different paths)\n {\n name: \"one:ssr-dedupe-prebundle\",\n config(config) {\n var _config_resolve;\n if (!dedupeSymlinks) return;\n var dedupeList = (_config_resolve = config.resolve) === null || _config_resolve === void 0 ? void 0 : _config_resolve.dedupe;\n if (!Array.isArray(dedupeList) || dedupeList.length === 0) return;\n return {\n ssr: {\n optimizeDeps: {\n include: [\n ...dedupeList\n ]\n },\n noExternal: [\n ...dedupeList\n ]\n }\n };\n }\n },\n // fix: vite's ssr dep optimizer registers pre-bundled deps by their\n // node_modules path, but symlinks cause imports to resolve to the real\n // (source) path. the optimizer doesn't recognize the real path, so it\n // loads from source — creating a duplicate instance.\n // this plugin forces optimized SSR deps to resolve via node_modules.\n // off by default, and every hook bails on `!dedupeSymlinks`, so skip\n // registering it entirely rather than paying a napi round trip per import\n ...dedupeSymlinks ? [\n ssrSymlinkDedupPlugin\n ] : []\n ];\n var nativeWebDevAndProdPlugsin = [\n (0, import_loaderJSXPlugin.loaderJSXPlugin)({\n routerRoot\n }),\n (0, import_clientTreeShakePlugin.clientTreeShakePlugin)({\n routerRoot\n })\n ];\n var nativeFormPlugins = [];\n var nativeFormPluginsCapture = {\n name: \"one:native-form-plugins\",\n configResolved(config) {\n nativeFormPlugins = config.plugins.filter(function(plugin) {\n var _plugin_api;\n return (_plugin_api = plugin.api) === null || _plugin_api === void 0 ? void 0 : _plugin_api.vxrnNative;\n });\n }\n };\n globalThis.__vxrnNativeIosEngine = !nativeDisabled ? {\n root: import_path.default.resolve(root),\n engine: nativeApp === null || nativeApp === void 0 ? void 0 : (_nativeApp_ios = nativeApp.ios) === null || _nativeApp_ios === void 0 ? void 0 : _nativeApp_ios.engine\n } : void 0;\n if (!nativeDisabled) {\n var viteBundlerOptions = (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler) === \"metro\" ? void 0 : nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n globalThis.__vxrnAddNativePlugins = function(platform) {\n var _ref2;\n var listed = [\n domPlugin,\n (0, import_vxrn.backgroundComputationPlugin)(\"native\"),\n (0, import_vxrn.workletImportsPlugin)({}),\n ...nativeApp ? [\n {\n name: \"one:externalize-expo-for-native-app\",\n resolveId(source, _importer, options2) {\n if (/^(?:expo(?:-[^/]+)?|@expo\\/[^/]+)(?:\\/|$)/.test(source)) {\n if ((platform === \"macos\" || platform === \"linux\") && options2.kind !== \"require-call\") return;\n return {\n id: source,\n external: true\n };\n }\n }\n }\n ] : [],\n createAliasPlugin(withAbsorbedAliases(options.alias), platform),\n (0, import_loaderJSXPlugin.loaderJSXPlugin)({\n routerRoot\n }),\n (0, import_clientTreeShakePlugin.clientTreeShakePlugin)({\n runtime: \"rolldown\",\n routerRoot\n }),\n ...(_ref2 = viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.plugins) !== null && _ref2 !== void 0 ? _ref2 : []\n ];\n var listedNames = new Set(listed.map(function(plugin) {\n return plugin.name;\n }));\n return [\n ...listed,\n ...nativeFormPlugins.filter(function(plugin) {\n return !listedNames.has(plugin.name);\n }),\n // last, so an app plugin that compiles .swift itself (a simulator) wins\n (0, import_swiftPackagePlugin.swiftPackagePlugin)(platform, root),\n (0, import_kotlinSourcePlugin.kotlinSourcePlugin)(platform, root),\n (0, import_iosSdkPlugin.iosSdkPlugin)(platform, root),\n (0, import_iosLinkSetPlugin.iosLinkSetPlugin)()\n ];\n };\n globalThis.__vxrnNativeUserDefine = {\n ...viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.define,\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n }\n };\n }\n globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;\n var flags = {};\n var routeIndex = (0, import_routeIndex.createRouteIndex)({\n routerRoot: import_path.default.resolve(root, routerRoot),\n ignoredRouteFiles: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.ignoredRouteFiles\n });\n if (!nativeDisabled) {\n var _options_router2, _options_router3;\n globalThis.__vxrnNativeEntryConfig = {\n routerRoot,\n ignoredRouteFiles: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.ignoredRouteFiles,\n linking: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.linking,\n setupFile: options.setupFile,\n flags,\n app: nativeApp\n };\n }\n var inspectorPlugins = (function() {\n var _options_devtools, _devtools_inspector;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var inspector = devtools === true || devtools !== false && ((_devtools_inspector = devtools.inspector) !== null && _devtools_inspector !== void 0 ? _devtools_inspector : true);\n var editor = devtools !== true && devtools !== false ? devtools.editor : void 0;\n return inspector ? (0, import_sourceInspectorPlugin.sourceInspectorPlugin)({\n editor\n }) : [];\n })();\n var workerdDevPlugins = (0, import_cloudflareWranglerConfig.shouldEnableWorkerdDev)((_options_web1 = options.web) === null || _options_web1 === void 0 ? void 0 : _options_web1.deploy, root) ? import(\"./plugins/workerdDevPlugin\").then(function(param) {\n var { createWorkerdDevPlugins } = param;\n return createWorkerdDevPlugins(options, root, routeIndex);\n }) : [];\n return [\n (0, import_vxrn.backgroundComputationPlugin)(\"web\"),\n {\n name: \"one:background-worker-build\",\n config(config) {\n var _config_worker;\n var plugins = (_config_worker = config.worker) === null || _config_worker === void 0 ? void 0 : _config_worker.plugins;\n return {\n worker: {\n plugins: function plugins1() {\n var _ref2;\n return [\n ...(_ref2 = plugins === null || plugins === void 0 ? void 0 : plugins()) !== null && _ref2 !== void 0 ? _ref2 : [],\n (0, import_vxrn.backgroundComputationPlugin)(\"web\")\n ];\n }\n }\n };\n }\n },\n workerdDevPlugins,\n ...vxrnPlugins,\n ...devAndProdPlugins,\n ...inspectorPlugins,\n ...nativeWebDevAndProdPlugsin,\n ...nativeDisabled ? [] : [\n nativeFormPluginsCapture\n ],\n /**\n * This is really the meat of one, where it handles requests:\n */\n (0, import_fileSystemRouterPlugin.createFileSystemRouterPlugin)(options, routeIndex),\n (0, import_generateFileSystemRouteTypesPlugin.generateFileSystemRouteTypesPlugin)(options, routeIndex),\n (0, import_loaderSearchSchemasPlugin.loaderSearchSchemasPlugin)(options, routeIndex),\n (0, import_fixDependenciesPlugin.fixDependenciesPlugin)(options.patches),\n (0, import_virtualEntryPlugin.createVirtualEntry)({\n ...options,\n flags,\n root: routerRoot,\n routeIndex\n }),\n {\n name: \"one-define-environment\",\n config() {\n return {\n define: {\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n },\n ...nativeAppVersion && {\n \"process.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion),\n \"import.meta.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion)\n },\n \"process.env.ONE_CACHE_KEY\": JSON.stringify(import_constants.CACHE_KEY),\n \"import.meta.env.ONE_CACHE_KEY\": JSON.stringify(import_constants.CACHE_KEY)\n }\n };\n }\n },\n (0, import_SSRCSSPlugin.SSRCSSPlugin)({\n entries: [\n import_virtualEntryConstants.virtualEntryId\n ]\n }),\n // devtools (always includes refresh preamble for HMR, optionally includes UI)\n ...(function() {\n var _options_devtools;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var includeUI = devtools !== false;\n var devtoolsOptions = typeof devtools === \"object\" ? devtools : void 0;\n return [\n // always include devtools plugin for refresh preamble (required for HMR)\n (0, import_devtoolsPlugin.createDevtoolsPlugin)({\n includeUI,\n plugins: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.plugins,\n rozenite: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.rozenite,\n // One's Vite bundler owns the native dev server. Metro mode has its\n // own Rozenite wrapper, so mounting a second host here would fight it.\n native: !nativeDisabled && !metroOptions\n })\n ];\n })()\n ];\n}\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,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P,OAAO,EACL,QAAQ;KACN,GAAG,iBAAiB;MAClB,4BAA4B,KAAK,UAAU,aAAa;MACxD,gCAAgC,KAAK,UAAU,aAAa;KAC9D;KACA,GAAG,oBAAoB;MACrB,+BAA+B,KAAK,UAAU,gBAAgB;MAC9D,mCAAmC,KAAK,UAAU,gBAAgB;KACpE;KACA,6BAA6B,KAAK,UAAU,iBAAiB,SAAS;KACtE,iCAAiC,KAAK,UAAU,iBAAiB,SAAS;IAC5E,EACF;GACF;EACF;GACC,GAAG,oBAAoB,aAAY,CAAE,EACpC,SAAS,CACP,6BAA6B,cAC/B,EACF,CAAC;EAED,IAAI,WAAW;GACb,IAAI;GACJ,IAAI,YAAY,oBAAoB,QAAQ,cAAc,QAAQ,sBAAsB,KAAK,IAAI,oBAAoB;GACrH,IAAI,YAAY,aAAa;GAC7B,IAAI,kBAAkB,OAAO,aAAa,WAAW,WAAW,KAAK;GACrE,OAAO,EAEJ,GAAG,sBAAsB,qBAAoB,CAAE;IAC9C;IACA,SAAS,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAC3F,UAAU,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,KAAK,IAAI,gBAAgB;IAG5F,QAAQ,CAAC,kBAAkB,CAAC;GAC9B,CAAC,CACH;EACF,EAAC,CAAE;CACL;AACF"}
|
|
1
|
+
{"version":3,"file":"one.native.js","names":[],"sources":["cjs/vite/one.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n one: () => one\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_compiler = require(\"@vxrn/compiler\");\nvar import_resolve = require(\"@vxrn/resolve\");\nvar import_utils = require(\"@vxrn/utils\");\nvar import_events = __toESM(require(\"events\"), 1);\nvar import_fs = require(\"fs\");\nvar import_path = __toESM(require(\"path\"), 1);\nvar import_filter = require(\"rolldown/filter\");\nvar import_vite = require(\"vite\");\nvar import_vxrn = require(\"vxrn\");\nvar import_vite_plugin = __toESM(require(\"vxrn/vite-plugin\"), 1);\nvar import_constants = require(\"../constants\");\nvar import_getViteMetroPluginOptions = require(\"../metro-config/getViteMetroPluginOptions\");\nvar import_setServerGlobals = require(\"../server/setServerGlobals\");\nvar import_getRouterRootFromOneOptions = require(\"../utils/getRouterRootFromOneOptions\");\nvar import_routeIndex = require(\"../utils/routeIndex\");\nvar import_absorbedPackages = require(\"../utils/absorbedPackages\");\nvar import_ensureTsConfig = require(\"./ensureTsConfig\");\nvar import_loadConfig = require(\"./loadConfig\");\nvar import_nativeBundler = require(\"./nativeBundler\");\nvar import_bundledDevPlugin = require(\"./plugins/bundledDevPlugin\");\nvar import_clientTreeShakePlugin = require(\"./plugins/clientTreeShakePlugin\");\nvar import_devtoolsPlugin = require(\"./plugins/devtoolsPlugin\");\nvar import_fileSystemRouterPlugin = require(\"./plugins/fileSystemRouterPlugin\");\nvar import_fixDependenciesPlugin = require(\"./plugins/fixDependenciesPlugin\");\nvar import_generateFileSystemRouteTypesPlugin = require(\"./plugins/generateFileSystemRouteTypesPlugin\");\nvar import_loaderJSXPlugin = require(\"./plugins/loaderJSXPlugin\");\nvar import_loaderSearchSchemasPlugin = require(\"./plugins/loaderSearchSchemasPlugin\");\nvar import_criticalCSSPlugin = require(\"./plugins/criticalCSSPlugin\");\nvar import_imageDataPlugin = require(\"./plugins/imageDataPlugin\");\nvar import_routeModuleHmrPlugin = require(\"./plugins/routeModuleHmrPlugin\");\nvar import_sourceInspectorPlugin = require(\"./plugins/sourceInspectorPlugin\");\nvar import_swiftPackagePlugin = require(\"./plugins/swiftPackagePlugin\");\nvar import_iosLinkSetPlugin = require(\"./plugins/iosLinkSetPlugin\");\nvar import_iosSdkPlugin = require(\"./plugins/iosSdkPlugin\");\nvar import_kotlinSourcePlugin = require(\"./plugins/kotlinSourcePlugin\");\nvar import_SSRCSSPlugin = require(\"./plugins/SSRCSSPlugin\");\nvar import_virtualEntryConstants = require(\"./plugins/virtualEntryConstants\");\nvar import_virtualEntryPlugin = require(\"./plugins/virtualEntryPlugin\");\nvar import_environmentGuardPlugin = require(\"./plugins/environmentGuardPlugin\");\nvar import_useDomPlugin = require(\"./plugins/useDomPlugin\");\nvar import_cloudflareWranglerConfig = require(\"./cloudflareWranglerConfig\");\nvar RN_DEEP_IMPORT_RE = /^react-native\\/Libraries\\/|react-native-web(-lite)?\\/.*\\/Libraries\\//;\nimport_events.default.setMaxListeners(1e3);\nglobalThis.__vxrnEnableNativeEnv = true;\nfunction one() {\n var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var _ref;\n var _nativeOptions_app, _options_config, _options_react, _options_ssr, _options_ssr1, _options_router, _options_web, _options_config1, _nativeApp_ios, _options_router1, _options_router2, _options_web1;\n (0, import_setServerGlobals.setServerGlobals)();\n var routerRoot = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);\n var nativeDisabled = options.native === false;\n var nativeOptions = options.native === false ? void 0 : options.native;\n var nativeAppName = (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_app = nativeOptions.app) === null || _nativeOptions_app === void 0 ? void 0 : _nativeOptions_app.name) || (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.key);\n var nativeApp = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.app;\n var nativeAppVersion = nativeApp === null || nativeApp === void 0 ? void 0 : nativeApp.version;\n if (nativeDisabled) {\n globalThis.__vxrnEnableNativeEnv = false;\n }\n var metroOptions = (function() {\n var _nativeOptions_bundlerOptions_argv, _nativeOptions_bundlerOptions, _options_router5, _options_router12, _nativeOptions_bundlerOptions1, _options_react2, _options_react1;\n if (nativeDisabled) return null;\n if ((0, import_nativeBundler.resolveNativeBundler)({\n bundler: nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler\n }) !== \"metro\") {\n var dropped = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n if ((dropped === null || dropped === void 0 ? void 0 : dropped.babelConfig) || (dropped === null || dropped === void 0 ? void 0 : dropped.babelConfigOverrides)) {\n console.warn(`[one] native.bundlerOptions configures babel plugins, but native.bundler is \"${nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler}\", which runs no babel. Those plugins will not run and whatever they were rewriting will reach the bundle untransformed.`);\n }\n return null;\n }\n if (process.env.ONE_METRO_MODE) {\n console.info(\"ONE_METRO_MODE environment variable is set, enabling Metro mode\");\n }\n var routerRoot2 = (0, import_getRouterRootFromOneOptions.getRouterRootFromOneOptions)(options);\n var defaultMetroOptions = (0, import_getViteMetroPluginOptions.getViteMetroPluginOptions)({\n projectRoot: (nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions_argv = _nativeOptions_bundlerOptions.argv) === null || _nativeOptions_bundlerOptions_argv === void 0 ? void 0 : _nativeOptions_bundlerOptions_argv.projectRoot) || process.cwd(),\n relativeRouterRoot: routerRoot2,\n ignoredRouteFiles: (_options_router5 = options.router) === null || _options_router5 === void 0 ? void 0 : _options_router5.ignoredRouteFiles,\n linking: (_options_router12 = options.router) === null || _options_router12 === void 0 ? void 0 : _options_router12.linking,\n userDefaultConfigOverrides: nativeOptions === null || nativeOptions === void 0 ? void 0 : (_nativeOptions_bundlerOptions1 = nativeOptions.bundlerOptions) === null || _nativeOptions_bundlerOptions1 === void 0 ? void 0 : _nativeOptions_bundlerOptions1.defaultConfigOverrides,\n setupFile: options.setupFile\n });\n var userMetroOptions = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n var babelConfig = {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.babelConfig,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.babelConfig\n };\n return {\n ...defaultMetroOptions,\n ...userMetroOptions,\n defaultConfigOverrides: defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.defaultConfigOverrides,\n // defaultConfigOverrides is merged by getViteMetroPluginOptions, so we need to set it here again.\n argv: {\n ...defaultMetroOptions === null || defaultMetroOptions === void 0 ? void 0 : defaultMetroOptions.argv,\n ...userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.argv\n },\n babelConfig: {\n ...babelConfig,\n plugins: [\n ...babelConfig.plugins || [],\n ...((_options_react2 = options.react) === null || _options_react2 === void 0 ? void 0 : _options_react2.compiler) === true || ((_options_react1 = options.react) === null || _options_react1 === void 0 ? void 0 : _options_react1.compiler) === \"native\" ? [\n \"babel-plugin-react-compiler\"\n ] : []\n ]\n },\n mainModuleName: \"one/metro-entry\",\n // allow env var to enable lazy startup\n startup: process.env.ONE_METRO_LAZY ? \"lazy\" : userMetroOptions === null || userMetroOptions === void 0 ? void 0 : userMetroOptions.startup\n };\n })();\n var vxrnPlugins = [];\n if (!process.env.IS_VXRN_CLI) {\n console.warn(\"Experimental: running VxRN as a Vite plugin. This is not yet stable.\");\n vxrnPlugins.push((0, import_vite_plugin.default)({\n metro: metroOptions,\n disableNative: nativeDisabled,\n patches: options.patches\n }));\n } else {\n if (!globalThis.__oneOptions) {\n (0, import_loadConfig.setOneOptions)(options);\n globalThis[\"__vxrnPluginConfig__\"] = options;\n globalThis[\"__vxrnMetroOptions__\"] = metroOptions;\n return [];\n }\n }\n if (((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== false) {\n void (0, import_ensureTsConfig.ensureTSConfig)();\n }\n var vxrnOptions = (0, import_vxrn.getOptionsFilled)();\n var root = (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.root) || process.cwd();\n var compiler = (_options_react = options.react) === null || _options_react === void 0 ? void 0 : _options_react.compiler;\n if (compiler) {\n (0, import_compiler.configureVXRNCompilerPlugin)({\n enableCompiler: (\n // pass through object config, regex, or function directly\n typeof compiler === \"object\" || typeof compiler === \"function\" ? compiler : compiler === \"native\" ? [\n \"ios\",\n \"android\"\n ] : compiler === \"web\" ? [\n \"ssr\",\n \"client\"\n ] : true\n )\n });\n }\n var autoDepsOptions = (_options_ssr = options.ssr) === null || _options_ssr === void 0 ? void 0 : _options_ssr.autoDepsOptimization;\n var dedupeSymlinks = (_ref = (_options_ssr1 = options.ssr) === null || _options_ssr1 === void 0 ? void 0 : _options_ssr1.dedupeSymlinkedModules) !== null && _ref !== void 0 ? _ref : false;\n var ssrDedup_optimizedPackages = null;\n var ssrDedup_projectRoot = \"\";\n var ssrSymlinkDedupPlugin = {\n name: \"one:ssr-symlink-dedup\",\n enforce: \"pre\",\n configResolved(config) {\n var _config_ssr_optimizeDeps, _config_ssr;\n if (!dedupeSymlinks) return;\n ssrDedup_projectRoot = config.root || process.cwd();\n var ssrInclude = (_config_ssr = config.ssr) === null || _config_ssr === void 0 ? void 0 : (_config_ssr_optimizeDeps = _config_ssr.optimizeDeps) === null || _config_ssr_optimizeDeps === void 0 ? void 0 : _config_ssr_optimizeDeps.include;\n if (!(ssrInclude === null || ssrInclude === void 0 ? void 0 : ssrInclude.length)) return;\n ssrDedup_optimizedPackages = /* @__PURE__ */ new Set();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = ssrInclude[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n if (entry.startsWith(\"@\")) {\n var parts = entry.split(\"/\");\n ssrDedup_optimizedPackages.add(`${parts[0]}/${parts[1]}`);\n } else {\n ssrDedup_optimizedPackages.add(entry.split(\"/\")[0]);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n },\n async resolveId(source, importer, options2) {\n if (!dedupeSymlinks) return;\n if (source[0] === \".\" || source[0] === \"/\") return;\n var pkgName;\n var subpath = null;\n if (source.startsWith(\"@\")) {\n var parts = source.split(\"/\");\n pkgName = parts.length >= 2 ? `${parts[0]}/${parts[1]}` : source;\n if (parts.length > 2) subpath = `./${parts.slice(2).join(\"/\")}`;\n } else {\n var parts1 = source.split(\"/\");\n pkgName = parts1[0];\n if (parts1.length > 1) subpath = `./${parts1.slice(1).join(\"/\")}`;\n }\n var resolved = await this.resolve(source, importer, {\n ...options2,\n skipSelf: true\n });\n if (!(resolved === null || resolved === void 0 ? void 0 : resolved.id)) return;\n if (resolved.id.includes(\"/node_modules/\")) return;\n var _$path = await import(\"path\");\n var fs = await import(\"fs\");\n var { join, dirname } = _$path;\n var { realpathSync, existsSync: existsSync2, readFileSync: readFileSync2 } = fs;\n var dir = ssrDedup_projectRoot;\n while (dir !== dirname(dir)) {\n var nmPkgDir = join(dir, \"node_modules\", pkgName);\n if (existsSync2(nmPkgDir)) {\n if (subpath) {\n try {\n var _pkg_exports;\n var pkg = JSON.parse(readFileSync2(join(nmPkgDir, \"package.json\"), \"utf8\"));\n var exportEntry = (_pkg_exports = pkg.exports) === null || _pkg_exports === void 0 ? void 0 : _pkg_exports[subpath];\n if (exportEntry && typeof exportEntry === \"object\") {\n var target = exportEntry.import || exportEntry.module || exportEntry.default;\n if (target) {\n var fullPath = join(nmPkgDir, target);\n if (existsSync2(fullPath))\n return {\n id: (0, import_vite.normalizePath)(fullPath),\n external: resolved.external\n };\n }\n }\n } catch (unused) {\n }\n }\n var realPkgDir = (0, import_vite.normalizePath)(realpathSync(nmPkgDir));\n if (resolved.id.startsWith(realPkgDir)) {\n var relativePart = resolved.id.slice(realPkgDir.length);\n return {\n id: (0, import_vite.normalizePath)(nmPkgDir) + relativePart,\n external: resolved.external\n };\n }\n break;\n }\n dir = dirname(dir);\n }\n }\n };\n var withAbsorbedAliases = function withAbsorbedAliases2(alias) {\n var root2 = process.cwd();\n return {\n ...alias,\n native: {\n ...(0, import_absorbedPackages.absorbedPackageAliases)(root2, \"native\"),\n ...alias === null || alias === void 0 ? void 0 : alias.native\n }\n };\n };\n var createAliasPlugin = function createAliasPlugin2(alias, nativePlatform) {\n var resolveMap = function resolveMap2(map) {\n if (!map) return null;\n var out = {};\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(map)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [key, value] = _step.value;\n try {\n out[key] = import_path.default.isAbsolute(value) ? value : (0, import_resolve.resolvePath)(value);\n } catch (unused) {\n out[key] = value;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return out;\n };\n var resolved = {\n web: resolveMap(alias.web),\n native: resolveMap(alias.native),\n client: resolveMap(alias.client),\n ssr: resolveMap(alias.ssr),\n ios: resolveMap(alias.ios),\n android: resolveMap(alias.android)\n };\n var aliasKeys = [\n ...new Set(Object.values(resolved).flatMap(function(m) {\n return m ? Object.keys(m) : [];\n }))\n ];\n var aliasFilter = aliasKeys.length ? new RegExp(`^(?:${aliasKeys.map(function(k) {\n return k.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n }).join(\"|\")})$`) : /(?!)/;\n return {\n name: \"one:alias\",\n enforce: \"pre\",\n // vite's dep optimizer resolves its include list without plugins, so the\n // absorbed packages also go in resolve.alias, which only web resolves with\n config: nativePlatform ? void 0 : function() {\n return {\n resolve: {\n alias: Object.entries((0, import_absorbedPackages.absorbedPackageAliases)(process.cwd(), \"web\")).map(function(param) {\n var [name, replacement] = param;\n return {\n find: new RegExp(`^${name}$`),\n replacement\n };\n })\n }\n };\n },\n resolveId: {\n filter: {\n id: aliasFilter\n },\n handler(source) {\n var _this_environment;\n var env = nativePlatform !== null && nativePlatform !== void 0 ? nativePlatform : (_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name;\n var specific = env ? resolved[env] : null;\n if (specific && source in specific) {\n var id = specific[source];\n return {\n id,\n external: false,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id)\n };\n }\n var isWeb = !env || env === \"client\" || env === \"ssr\";\n var general = isWeb ? resolved.web : resolved.native;\n if (general && source in general) {\n var id1 = general[source];\n return {\n id: id1,\n external: false,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id1)\n };\n }\n }\n }\n };\n };\n var domPlugin = (0, import_useDomPlugin.useDOMPlugin)({\n root,\n routerRoot,\n ignoredRouteFiles: (_options_router = options.router) === null || _options_router === void 0 ? void 0 : _options_router.ignoredRouteFiles,\n metro: !!metroOptions,\n browserPlugins: [\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n (0, import_environmentGuardPlugin.environmentGuardPlugin)(options.environmentGuards)\n ]\n });\n var devAndProdPlugins = [\n domPlugin,\n {\n name: \"one:config\",\n __get: options\n },\n {\n name: \"one:env-prefix\",\n config(userConfig) {\n if (userConfig.envPrefix) return;\n return {\n envPrefix: [\n \"VITE_\",\n \"ONE_PUBLIC_\",\n \"EXPO_PUBLIC_\"\n ]\n };\n }\n },\n (0, import_bundledDevPlugin.bundledDevPlugin)(!!((_options_web = options.web) === null || _options_web === void 0 ? void 0 : _options_web.experimentalBundledDev)),\n (0, import_environmentGuardPlugin.environmentGuardPlugin)(options.environmentGuards),\n (0, import_criticalCSSPlugin.criticalCSSPlugin)(),\n (0, import_imageDataPlugin.imageDataPlugin)(),\n {\n name: \"one-define-client-env\",\n async config(userConfig, env) {\n var _ref2, _ref1, _ref22;\n var clientEnvDefine = options.skipEnv ? {} : (await (0, import_vxrn.loadEnv)((_ref2 = (_ref1 = (_ref22 = vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.mode) !== null && _ref22 !== void 0 ? _ref22 : userConfig === null || userConfig === void 0 ? void 0 : userConfig.mode) !== null && _ref1 !== void 0 ? _ref1 : env === null || env === void 0 ? void 0 : env.mode) !== null && _ref2 !== void 0 ? _ref2 : \"development\", process.cwd(), userConfig === null || userConfig === void 0 ? void 0 : userConfig.envPrefix)).clientEnvDefine;\n return {\n define: {\n ...clientEnvDefine,\n ...process.env.ONE_DEBUG_ROUTER && {\n \"process.env.ONE_DEBUG_ROUTER\": JSON.stringify(process.env.ONE_DEBUG_ROUTER)\n }\n }\n };\n }\n },\n ...autoDepsOptions === false ? [] : [\n (0, import_vxrn.autoDepOptimizePlugin)({\n onScannedDeps(param) {\n var { hasReanimated, hasNativewind } = param;\n var _ref2;\n (0, import_compiler.configureVXRNCompilerPlugin)({\n enableReanimated: hasReanimated,\n enableNativeCSS: (_ref2 = nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.css) !== null && _ref2 !== void 0 ? _ref2 : hasNativewind,\n enableNativewind: hasNativewind\n });\n },\n root,\n include: /node_modules/,\n ...autoDepsOptions === true ? {} : autoDepsOptions\n })\n ],\n ...((_options_config1 = options.config) === null || _options_config1 === void 0 ? void 0 : _options_config1.tsConfigPaths) === false ? [] : [\n (function() {\n var mappings = [];\n function loadMappings(resolvedRoot) {\n try {\n var _config_compilerOptions, _config_compilerOptions1;\n var configPath = import_path.default.resolve(resolvedRoot, \"tsconfig.json\");\n if (!(0, import_fs.existsSync)(configPath)) return;\n var raw = (0, import_fs.readFileSync)(configPath, \"utf-8\");\n var stripped = raw.replace(/\\\\\"|\"(?:\\\\\"|[^\"])*\"|(\\/\\/.*|\\/\\*[\\s\\S]*?\\*\\/)/g, function(m, g) {\n return g ? \"\" : m;\n });\n var config = JSON.parse(stripped);\n var paths = config === null || config === void 0 ? void 0 : (_config_compilerOptions = config.compilerOptions) === null || _config_compilerOptions === void 0 ? void 0 : _config_compilerOptions.paths;\n var baseUrl = (config === null || config === void 0 ? void 0 : (_config_compilerOptions1 = config.compilerOptions) === null || _config_compilerOptions1 === void 0 ? void 0 : _config_compilerOptions1.baseUrl) || \".\";\n if (!paths) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(paths)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [pattern, targets] = _step.value;\n var target = targets[0];\n if (!target) continue;\n if (pattern.endsWith(\"/*\")) {\n var resolved = import_path.default.resolve(resolvedRoot, baseUrl, target.slice(0, -1));\n mappings.push({\n prefix: pattern.slice(0, -1),\n replacement: resolved.endsWith(\"/\") ? resolved : resolved + \"/\",\n wildcard: true\n });\n } else {\n mappings.push({\n prefix: pattern,\n replacement: import_path.default.resolve(resolvedRoot, baseUrl, target),\n wildcard: false\n });\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } catch (unused) {\n }\n }\n loadMappings(root);\n var tsconfigPathsFilter = mappings.length ? new RegExp(mappings.map(function(m) {\n return `^${m.prefix.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")}${m.wildcard ? \"\" : \"$\"}`;\n }).join(\"|\")) : /^[^./]/;\n return {\n name: \"one:tsconfig-paths\",\n enforce: \"pre\",\n config() {\n return {\n resolve: {\n tsconfigPaths: true\n }\n };\n },\n configResolved(config) {\n if (mappings.length === 0) {\n loadMappings(config.root);\n }\n },\n resolveId: {\n filter: {\n id: tsconfigPathsFilter\n },\n handler(source) {\n var resolved = function resolved2(id) {\n return {\n id,\n packageJsonPath: (0, import_vxrn.nearestPackageJson)(id)\n };\n };\n var jsExts = [\n \".ts\",\n \".tsx\",\n \".js\",\n \".jsx\",\n \".mts\",\n \".mjs\",\n \".cjs\",\n \".cts\"\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = mappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var m = _step.value;\n var candidate = void 0;\n if (m.wildcard) {\n if (source.startsWith(m.prefix)) {\n candidate = m.replacement + source.slice(m.prefix.length);\n }\n } else if (source === m.prefix) {\n candidate = m.replacement;\n }\n if (!candidate) continue;\n if (jsExts.includes(import_path.default.extname(candidate))) return resolved(candidate);\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = jsExts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var e = _step1.value;\n if ((0, import_fs.existsSync)(candidate + e)) return resolved(candidate + e);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = jsExts[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var e1 = _step2.value;\n if ((0, import_fs.existsSync)(candidate + \"/index\" + e1)) return resolved(candidate + \"/index\" + e1);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n return resolved(candidate);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }\n };\n })()\n ],\n createAliasPlugin(withAbsorbedAliases(options.alias)),\n {\n // rolldown fails on deep react-native/Libraries/* imports during dep pre-bundling.\n // these are native-only paths that don't exist in react-native-web.\n name: \"one:redirect-rn-deep-imports\",\n enforce: \"pre\",\n // rust-side filter matching the two source patterns below, so the ~24k\n // non-matching imports in a build never enter js at all\n resolveId: {\n filter: {\n id: RN_DEEP_IMPORT_RE\n },\n handler(source) {\n var _this_environment, _this_environment1, _this_environment2;\n if (((_this_environment = this.environment) === null || _this_environment === void 0 ? void 0 : _this_environment.name) === \"client\" || ((_this_environment1 = this.environment) === null || _this_environment1 === void 0 ? void 0 : _this_environment1.name) === \"ssr\" || ((_this_environment2 = this.environment) === null || _this_environment2 === void 0 ? void 0 : _this_environment2.name) === \"worker\") {\n return \"\\0rn-empty-module\";\n }\n }\n },\n load: {\n filter: {\n id: (0, import_filter.exactRegex)(\"\\0rn-empty-module\")\n },\n handler() {\n return \"export default {}; export {};\";\n }\n }\n },\n {\n name: \"one-aliases\",\n enforce: \"pre\",\n config() {\n var tslibLitePath = \"\";\n try {\n tslibLitePath = (0, import_resolve.resolvePath)(\"@vxrn/tslib-lite\", process.cwd());\n } catch (err) {\n console.info(`Can't find tslib-lite, falling back to tslib`);\n if (process.env.DEBUG) {\n console.error(err);\n }\n }\n return {\n resolve: {\n alias: {\n // testing getting transition between routes working\n // 'use-sync-external-store/with-selector': resolvePath(\n // 'use-sync-external-store/shim/with-selector'\n // ),\n ...tslibLitePath && {\n tslib: tslibLitePath\n }\n }\n }\n };\n }\n },\n {\n name: \"one:init-config\",\n config() {\n var _options_web2, _options_web12, _options_web22, _options_web3;\n var setupFileDefines = (function() {\n if (!options.setupFile) return {};\n var setupFiles;\n if (typeof options.setupFile === \"string\") {\n setupFiles = {\n client: options.setupFile,\n server: options.setupFile,\n ios: options.setupFile,\n android: options.setupFile\n };\n } else if (\"native\" in options.setupFile) {\n setupFiles = {\n client: options.setupFile.client,\n server: options.setupFile.server,\n ios: options.setupFile.native,\n android: options.setupFile.native\n };\n } else {\n setupFiles = options.setupFile;\n }\n return {\n ...setupFiles.client && {\n \"process.env.ONE_SETUP_FILE_CLIENT\": JSON.stringify(setupFiles.client)\n },\n ...setupFiles.server && {\n \"process.env.ONE_SETUP_FILE_SERVER\": JSON.stringify(setupFiles.server)\n },\n ...setupFiles.ios && {\n \"process.env.ONE_SETUP_FILE_IOS\": JSON.stringify(setupFiles.ios)\n },\n ...setupFiles.android && {\n \"process.env.ONE_SETUP_FILE_ANDROID\": JSON.stringify(setupFiles.android)\n }\n };\n })();\n var serverURL = process.env.ONE_SERVER_URL || (vxrnOptions === null || vxrnOptions === void 0 ? void 0 : vxrnOptions.server.url);\n return {\n // Platform env defined at root level for client (workaround for Vite bug with environment.client.define)\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"client\"),\n ...setupFileDefines,\n ...((_options_web2 = options.web) === null || _options_web2 === void 0 ? void 0 : _options_web2.defaultRenderMode) && {\n \"process.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode),\n \"import.meta.env.ONE_DEFAULT_RENDER_MODE\": JSON.stringify(options.web.defaultRenderMode)\n },\n ...process.env.NODE_ENV !== \"production\" && serverURL && {\n \"process.env.ONE_SERVER_URL\": JSON.stringify(serverURL),\n \"import.meta.env.ONE_SERVER_URL\": JSON.stringify(serverURL)\n },\n ...((_options_web12 = options.web) === null || _options_web12 === void 0 ? void 0 : _options_web12.linkPrefetch) && {\n \"process.env.ONE_LINK_PREFETCH\": JSON.stringify(options.web.linkPrefetch)\n },\n ...((_options_web22 = options.web) === null || _options_web22 === void 0 ? void 0 : _options_web22.skewProtection) !== void 0 && {\n \"process.env.ONE_SKEW_PROTECTION\": JSON.stringify(options.web.skewProtection === true ? \"true\" : options.web.skewProtection === false ? \"false\" : options.web.skewProtection)\n },\n // 'proactive'\n ...((_options_web3 = options.web) === null || _options_web3 === void 0 ? void 0 : _options_web3.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES\": JSON.stringify(options.web.suspendRoutes ? \"1\" : \"0\")\n }\n },\n environments: {\n ssr: {\n define: (0, import_utils.getPlatformEnvDefine)(\"ssr\")\n },\n ios: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"ios\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n android: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"android\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n macos: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"macos\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n },\n linux: {\n define: {\n ...(0, import_utils.getPlatformEnvDefine)(\"linux\"),\n ...(nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.suspendRoutes) !== void 0 && {\n \"process.env.ONE_SUSPEND_ROUTES_NATIVE\": JSON.stringify(nativeOptions.suspendRoutes ? \"1\" : \"0\")\n }\n }\n }\n },\n ssr: {\n // ensure server-only/client-only go through vite so our environmentGuardPlugin can handle them\n noExternal: [\n \"server-only\",\n \"client-only\"\n ]\n }\n };\n }\n },\n {\n name: \"one:tamagui\",\n config() {\n return {\n define: {\n // safe to set because it only affects web in tamagui, and one is always react 19\n \"process.env.TAMAGUI_REACT_19\": '\"1\"'\n },\n environments: {\n ssr: {\n define: {\n \"process.env.TAMAGUI_IS_SERVER\": '\"1\"',\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n ios: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n android: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n macos: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n },\n linux: {\n define: {\n \"process.env.TAMAGUI_KEEP_THEMES\": '\"1\"'\n }\n }\n }\n };\n }\n },\n (0, import_routeModuleHmrPlugin.createRouteModuleHmrPlugin)(routerRoot),\n // Plugins may transform the source code and add imports of `react/jsx-dev-runtime`, which won't be discovered by Vite's initial `scanImports` since the implementation is using ESbuild where such plugins are not executed.\n // Thus, if the project has a valid `react/jsx-dev-runtime` import, we tell Vite to optimize it, so Vite won't only discover it on the next page load and trigger a full reload.\n {\n name: \"one:optimize-dev-deps\",\n config(_, env) {\n if (env.mode === \"development\") {\n return {\n optimizeDeps: {\n include: [\n \"react/jsx-dev-runtime\",\n \"react/compiler-runtime\"\n ]\n }\n };\n }\n }\n },\n {\n name: \"one:remove-server-from-client\",\n enforce: \"pre\",\n // both conditions are rust-side: only one-server-only modules that\n // actually contain the import cross into js\n transform: {\n filter: {\n id: /one-server-only/,\n code: 'import { AsyncLocalStorage } from \"node:async_hooks\"'\n },\n handler(code) {\n if (this.environment.name !== \"client\") return;\n return code.replace(`import { AsyncLocalStorage } from \"node:async_hooks\"`, `class AsyncLocalStorage {}`);\n }\n }\n },\n // packages in resolve.dedupe must also be pre-bundled for SSR to prevent\n // duplicate module instances (e.g. symlinked monorepo packages resolving\n // to different paths)\n {\n name: \"one:ssr-dedupe-prebundle\",\n config(config) {\n var _config_resolve;\n if (!dedupeSymlinks) return;\n var dedupeList = (_config_resolve = config.resolve) === null || _config_resolve === void 0 ? void 0 : _config_resolve.dedupe;\n if (!Array.isArray(dedupeList) || dedupeList.length === 0) return;\n return {\n ssr: {\n optimizeDeps: {\n include: [\n ...dedupeList\n ]\n },\n noExternal: [\n ...dedupeList\n ]\n }\n };\n }\n },\n // fix: vite's ssr dep optimizer registers pre-bundled deps by their\n // node_modules path, but symlinks cause imports to resolve to the real\n // (source) path. the optimizer doesn't recognize the real path, so it\n // loads from source — creating a duplicate instance.\n // this plugin forces optimized SSR deps to resolve via node_modules.\n // off by default, and every hook bails on `!dedupeSymlinks`, so skip\n // registering it entirely rather than paying a napi round trip per import\n ...dedupeSymlinks ? [\n ssrSymlinkDedupPlugin\n ] : []\n ];\n var nativeWebDevAndProdPlugsin = [\n (0, import_loaderJSXPlugin.loaderJSXPlugin)({\n routerRoot\n }),\n (0, import_clientTreeShakePlugin.clientTreeShakePlugin)({\n routerRoot\n })\n ];\n var nativeFormPlugins = [];\n var nativeFormPluginsCapture = {\n name: \"one:native-form-plugins\",\n configResolved(config) {\n nativeFormPlugins = config.plugins.filter(function(plugin) {\n var _plugin_api;\n return (_plugin_api = plugin.api) === null || _plugin_api === void 0 ? void 0 : _plugin_api.vxrnNative;\n });\n }\n };\n globalThis.__vxrnNativeIosEngine = !nativeDisabled ? {\n root: import_path.default.resolve(root),\n engine: nativeApp === null || nativeApp === void 0 ? void 0 : (_nativeApp_ios = nativeApp.ios) === null || _nativeApp_ios === void 0 ? void 0 : _nativeApp_ios.engine\n } : void 0;\n if (!nativeDisabled) {\n var viteBundlerOptions = (nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundler) === \"metro\" ? void 0 : nativeOptions === null || nativeOptions === void 0 ? void 0 : nativeOptions.bundlerOptions;\n globalThis.__vxrnAddNativePlugins = function(platform) {\n var _ref2;\n var listed = [\n domPlugin,\n (0, import_vxrn.backgroundComputationPlugin)(\"native\"),\n (0, import_vxrn.workletImportsPlugin)({}),\n ...nativeApp ? [\n {\n name: \"one:externalize-expo-for-native-app\",\n resolveId(source, _importer, options2) {\n if (/^(?:expo(?:-[^/]+)?|@expo\\/[^/]+)(?:\\/|$)/.test(source)) {\n if ((platform === \"macos\" || platform === \"linux\") && options2.kind !== \"require-call\") return;\n return {\n id: source,\n external: true\n };\n }\n }\n }\n ] : [],\n createAliasPlugin(withAbsorbedAliases(options.alias), platform),\n (0, import_loaderJSXPlugin.loaderJSXPlugin)({\n routerRoot\n }),\n (0, import_clientTreeShakePlugin.clientTreeShakePlugin)({\n runtime: \"rolldown\",\n routerRoot\n }),\n ...(_ref2 = viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.plugins) !== null && _ref2 !== void 0 ? _ref2 : []\n ];\n var listedNames = new Set(listed.map(function(plugin) {\n return plugin.name;\n }));\n return [\n ...listed,\n ...nativeFormPlugins.filter(function(plugin) {\n return !listedNames.has(plugin.name);\n }),\n // last, so an app plugin that compiles .swift itself (a simulator) wins\n (0, import_swiftPackagePlugin.swiftPackagePlugin)(platform, root),\n (0, import_kotlinSourcePlugin.kotlinSourcePlugin)(platform, root),\n (0, import_iosSdkPlugin.iosSdkPlugin)(platform, root),\n (0, import_iosLinkSetPlugin.iosLinkSetPlugin)()\n ];\n };\n globalThis.__vxrnNativeUserDefine = {\n ...viteBundlerOptions === null || viteBundlerOptions === void 0 ? void 0 : viteBundlerOptions.define,\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n }\n };\n }\n globalThis.__vxrnAddWebPluginsProd = devAndProdPlugins;\n var flags = {\n warmStart: (_options_router1 = options.router) === null || _options_router1 === void 0 ? void 0 : _options_router1.restore\n };\n var routeIndex = (0, import_routeIndex.createRouteIndex)({\n routerRoot: import_path.default.resolve(root, routerRoot),\n ignoredRouteFiles: (_options_router2 = options.router) === null || _options_router2 === void 0 ? void 0 : _options_router2.ignoredRouteFiles\n });\n if (!nativeDisabled) {\n var _options_router3, _options_router4;\n globalThis.__vxrnNativeEntryConfig = {\n routerRoot,\n ignoredRouteFiles: (_options_router3 = options.router) === null || _options_router3 === void 0 ? void 0 : _options_router3.ignoredRouteFiles,\n linking: (_options_router4 = options.router) === null || _options_router4 === void 0 ? void 0 : _options_router4.linking,\n setupFile: options.setupFile,\n flags,\n app: nativeApp\n };\n }\n var inspectorPlugins = (function() {\n var _options_devtools, _devtools_inspector;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var inspector = devtools === true || devtools !== false && ((_devtools_inspector = devtools.inspector) !== null && _devtools_inspector !== void 0 ? _devtools_inspector : true);\n var editor = devtools !== true && devtools !== false ? devtools.editor : void 0;\n return inspector ? (0, import_sourceInspectorPlugin.sourceInspectorPlugin)({\n editor\n }) : [];\n })();\n var workerdDevPlugins = (0, import_cloudflareWranglerConfig.shouldEnableWorkerdDev)((_options_web1 = options.web) === null || _options_web1 === void 0 ? void 0 : _options_web1.deploy, root) ? import(\"./plugins/workerdDevPlugin\").then(function(param) {\n var { createWorkerdDevPlugins } = param;\n return createWorkerdDevPlugins(options, root, routeIndex);\n }) : [];\n return [\n (0, import_vxrn.backgroundComputationPlugin)(\"web\"),\n {\n name: \"one:background-worker-build\",\n config(config) {\n var _config_worker;\n var plugins = (_config_worker = config.worker) === null || _config_worker === void 0 ? void 0 : _config_worker.plugins;\n return {\n worker: {\n plugins: function plugins1() {\n var _ref2;\n return [\n ...(_ref2 = plugins === null || plugins === void 0 ? void 0 : plugins()) !== null && _ref2 !== void 0 ? _ref2 : [],\n (0, import_vxrn.backgroundComputationPlugin)(\"web\")\n ];\n }\n }\n };\n }\n },\n workerdDevPlugins,\n ...vxrnPlugins,\n ...devAndProdPlugins,\n ...inspectorPlugins,\n ...nativeWebDevAndProdPlugsin,\n ...nativeDisabled ? [] : [\n nativeFormPluginsCapture\n ],\n /**\n * This is really the meat of one, where it handles requests:\n */\n (0, import_fileSystemRouterPlugin.createFileSystemRouterPlugin)(options, routeIndex),\n (0, import_generateFileSystemRouteTypesPlugin.generateFileSystemRouteTypesPlugin)(options, routeIndex),\n (0, import_loaderSearchSchemasPlugin.loaderSearchSchemasPlugin)(options, routeIndex),\n (0, import_fixDependenciesPlugin.fixDependenciesPlugin)(options.patches),\n (0, import_virtualEntryPlugin.createVirtualEntry)({\n ...options,\n flags,\n root: routerRoot,\n routeIndex\n }),\n {\n name: \"one-define-environment\",\n config() {\n return {\n define: {\n ...nativeAppName && {\n \"process.env.ONE_APP_NAME\": JSON.stringify(nativeAppName),\n \"import.meta.env.ONE_APP_NAME\": JSON.stringify(nativeAppName)\n },\n ...nativeAppVersion && {\n \"process.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion),\n \"import.meta.env.ONE_APP_VERSION\": JSON.stringify(nativeAppVersion)\n },\n \"process.env.ONE_CACHE_KEY\": JSON.stringify(import_constants.CACHE_KEY),\n \"import.meta.env.ONE_CACHE_KEY\": JSON.stringify(import_constants.CACHE_KEY)\n }\n };\n }\n },\n (0, import_SSRCSSPlugin.SSRCSSPlugin)({\n entries: [\n import_virtualEntryConstants.virtualEntryId\n ]\n }),\n // devtools (always includes refresh preamble for HMR, optionally includes UI)\n ...(function() {\n var _options_devtools;\n var devtools = (_options_devtools = options.devtools) !== null && _options_devtools !== void 0 ? _options_devtools : true;\n var includeUI = devtools !== false;\n var devtoolsOptions = typeof devtools === \"object\" ? devtools : void 0;\n return [\n // always include devtools plugin for refresh preamble (required for HMR)\n (0, import_devtoolsPlugin.createDevtoolsPlugin)({\n includeUI,\n plugins: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.plugins,\n rozenite: devtoolsOptions === null || devtoolsOptions === void 0 ? void 0 : devtoolsOptions.rozenite,\n // One's Vite bundler owns the native dev server. Metro mode has its\n // own Rozenite wrapper, so mounting a second host here would fight it.\n native: !nativeDisabled && !metroOptions\n })\n ];\n })()\n ];\n}\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW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