one 1.1.317 → 1.1.319

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,10 +23,22 @@ __export(getPageExport_exports, {
23
23
  getPageExport: () => getPageExport
24
24
  });
25
25
  module.exports = __toCommonJS(getPageExport_exports);
26
- const getPageExport = exported => exported.default ||
27
- // because HMR fails with default exports, allow exporting something else
28
- // we just find the first non-loader export for now...
29
- (() => {
30
- const nonLoader = Object.keys(exported).find(x => x !== "loader" && x[0].toUpperCase() === x[0]);
31
- if (nonLoader) return exported[nonLoader];
32
- })();
26
+ const getPageLikeExports = x => x !== "loader" && x[0].toUpperCase() === x[0],
27
+ getPageExport = exported => exported.default ||
28
+ // because HMR fails with default exports, allow exporting something else
29
+ // we just find the first non-loader export for now...
30
+ (() => {
31
+ const keys = Object.keys(exported);
32
+ process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
33
+
34
+ If there is no default export, One uses the first capitalized non-default export.
35
+ This is because React Refresh, the hot reloading library, does not work on default
36
+ exports, so you may prefer to use non-default exports. But exporting multiple can
37
+ cause issues, as browser clients and server runtimes may not sort the export keys
38
+ the same.
39
+
40
+ Be sure to only export a single capitalized non-default export per-route.
41
+ `);
42
+ const nonLoader = keys.find(getPageLikeExports);
43
+ if (nonLoader) return exported[nonLoader];
44
+ })();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/getPageExport.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AAEL,QAAM,YADO,OAAO,KAAK,QAAQ,EACV,KAAK,CAAC,MAAM,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,CAAC;AAChF,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAAM,qBAAqB,CAAC,MAAc,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,GAEzE,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AACL,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,EAAI,QAAQ,IAAI,aAAa,iBACF,KAAK,OAAO,kBAAkB,EAClC,SAAS,KAC5B,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;AAIP,QAAM,YAAY,KAAK,KAAK,kBAAkB;AAC9C,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
5
5
  "names": []
6
6
  }
@@ -18,13 +18,27 @@ __export(getPageExport_exports, {
18
18
  getPageExport: () => getPageExport
19
19
  });
20
20
  module.exports = __toCommonJS(getPageExport_exports);
21
- var getPageExport = function(exported) {
21
+ var getPageLikeExports = function(x) {
22
+ return x !== "loader" && x[0].toUpperCase() === x[0];
23
+ }, getPageExport = function(exported) {
22
24
  return exported.default || // because HMR fails with default exports, allow exporting something else
23
25
  // we just find the first non-loader export for now...
24
26
  function() {
25
- var keys = Object.keys(exported), nonLoader = keys.find(function(x) {
26
- return x !== "loader" && x[0].toUpperCase() === x[0];
27
- });
27
+ var keys = Object.keys(exported);
28
+ if (process.env.NODE_ENV === "development") {
29
+ var upperCaseExports = keys.filter(getPageLikeExports);
30
+ upperCaseExports.length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
31
+
32
+ If there is no default export, One uses the first capitalized non-default export.
33
+ This is because React Refresh, the hot reloading library, does not work on default
34
+ exports, so you may prefer to use non-default exports. But exporting multiple can
35
+ cause issues, as browser clients and server runtimes may not sort the export keys
36
+ the same.
37
+
38
+ Be sure to only export a single capitalized non-default export per-route.
39
+ `);
40
+ }
41
+ var nonLoader = keys.find(getPageLikeExports);
28
42
  if (nonLoader)
29
43
  return exported[nonLoader];
30
44
  }();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAAO,IAAMA,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA,GACnBI,YAAYF,KAAKG,KAAK,SAACC,GAAAA;aAAMA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;;AAC9E,QAAIF;AACF,aAAOJ,SAASI,SAAAA;EAEpB,EAAA;AAEJ;",
5
- "names": ["getPageExport", "exported", "default", "keys", "Object", "nonLoader", "find", "x", "toUpperCase"]
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;IAAMA,qBAAqB,SAACC,GAAAA;SAAcA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;GAExEE,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA;AAEzB,QAAII,QAAQC,IAAIC,aAAa,eAAe;AAC1C,UAAMC,mBAAmBL,KAAKM,OAAOZ,kBAAAA;AACrC,MAAIW,iBAAiBE,SAAS,KAC5BC,QAAQC,KAAK;;;;;;;;;aASV;IAEP;AAEA,QAAMC,YAAYV,KAAKW,KAAKjB,kBAAAA;AAC5B,QAAIgB;AACF,aAAOZ,SAASY,SAAAA;EAEpB,EAAA;AAEJ;",
5
+ "names": ["getPageLikeExports", "x", "toUpperCase", "getPageExport", "exported", "default", "keys", "Object", "process", "env", "NODE_ENV", "upperCaseExports", "filter", "length", "console", "warn", "nonLoader", "find"]
6
6
  }
@@ -75,7 +75,9 @@ function one(options = {}) {
75
75
  define: clientEnvDefine
76
76
  };
77
77
  }
78
- },
78
+ }, ...(options.ssr?.disableAutoDepsPreBundling ? [] : [(0, import_vxrn.autoPreBundleDepsForSsrPlugin)({
79
+ root: vxrnOptions?.root || process.cwd()
80
+ })]),
79
81
  // proxy because you cant add a plugin inside a plugin
80
82
  new Proxy({
81
83
  name: "one:tsconfig-paths",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAA6E,iBAC7E,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BAAmD,iCACnD,0BAAiC;AAEjC,mBAAAA,QAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAGT,QAAQ,QAAQ,mBAAmB,UAChC,sCAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,QAAI,6BAAgB,OAAO,GAC1C,cAAc,aAAa,SAC3B,kBAAkB,IAAI;AAAA;AAAA;AAAA,IAG1B,GAAG,YAAY,IAAI,CAAC,OAAO,GAAG,QAAQ,uBAAuB,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC;AAAA,EACjF;AAEA,MAAI,sBAAqC;AAEzC,QAAM,kBAAc,8BAAiB,GAE/B,EAAE,gBAAgB,QAAI,qBAAQ,aAAa,QAAQ,aAAa,GAEhE,oBAAoB;AAAA,IACxB;AAAA,MACE,MAAM;AAAA,MACN,SAAS;AACP,eAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,MACF;AAAA,IACF;AAAA;AAAA,IAGA,IAAI;AAAA,MACF;AAAA,QACE,MAAM;AAAA,QACN,OAAO,gB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AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,QAEA,0CAAiB;AAAA,MACf,SAAS,CAAC,wCAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,4BAA4B;AAE9C,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,UAAM,gCAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,sBAAsB,QAAQ,IAAI,CAAC,kCAAkC;AAEvF,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO;AACT;",
5
5
  "names": ["events", "tsconfigPaths", "path"]
6
6
  }
@@ -31,7 +31,7 @@ var import_resolve = require("@vxrn/resolve"), import_node_events = __toESM(requ
31
31
  import_node_events.default.setMaxListeners(1e3);
32
32
  globalThis.__vxrnEnableNativeEnv = !0;
33
33
  function one() {
34
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config;
34
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config, _options_ssr;
35
35
  oneOptions = options, ((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== !1 && (0, import_ensureTsConfig.ensureTSConfig)(), globalThis.__vxrnPluginConfig__ = options;
36
36
  var { optimizeDeps } = (0, import_vxrn.getOptimizeDeps)("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
37
37
  // santize ids for regex
@@ -48,6 +48,11 @@ function one() {
48
48
  };
49
49
  }
50
50
  },
51
+ ...!((_options_ssr = options.ssr) === null || _options_ssr === void 0) && _options_ssr.disableAutoDepsPreBundling ? [] : [
52
+ (0, import_vxrn.autoPreBundleDepsForSsrPlugin)({
53
+ root: (vxrnOptions == null ? void 0 : vxrnOptions.root) || process.cwd()
54
+ })
55
+ ],
51
56
  // proxy because you cant add a plugin inside a plugin
52
57
  new Proxy({
53
58
  name: "one:tsconfig-paths",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/one.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAA6E,iBAC7E,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BAAmD,iCACnD,0BAAiC;AAEjCA,mBAAAA,QAAOC,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAAIC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA6B,CAAC,GAI5CA;AAHJC,eAAaD,WAGTA,kBAAAA,QAAQE,YAAM,QAAdF,oBAAAA,SAAAA,SAAAA,gBAAgBG,oBAAmB,UAChCA,sCAAAA,GAGPN,WAAW,uBAA0BG;AAGrC,MAAM,EAAEI,aAAY,QAAKC,6BAAgB,OAAA,GACnCC,cAAcF,aAAaG,SAC3BC,kBAAkB,IAAIC;;;IAG1B,GAAGH,YAAYI,IAAI,SAACC,IAAAA;aAAOA,GAAGC,QAAQ,uBAAuB,MAAA;OAASC,KAAK,GAAA,CAAA;EAAM,GAG/EC,sBAAqC,MAEnCC,kBAAcC,8BAAAA,GAEgBD,mBAA9B,EAAEE,gBAAe,QAAKC,sBAAQH,oB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EAAAA,GAC1CoF,UAAUF,aAAajF,QAAQ,WAAW,EAAA,IAAM;AACtD,cAAImF,YAAYpF,GAAI;AACpB,cAAI;AACF,gBAAMqF,gBAAgBH,eAAe;AACrC,gBAAI,UAAMI,gCAAYD,aAAAA;AACpB,qBAAOA;AAET,gBAAI,UAAMC,gCAAYF,OAAAA;AACpB,qBAAOA;UAEX,SAASG,KAAK;AACZC,oBAAQC,KAAK,uBAAuBF,GAAAA;UACtC;QACF;MACF;IACF;QAEAG,0CAAiB;MACfC,SAAS;QAACC;;IACZ,CAAA;;AAEJ;AAEA,IAAItG,aAAuC;AAE3C,eAAeuG,kBAAkBC,SAA2B;AAC1D,MAAI,CAACxG,YAAY;AACf,QAAI,CAACwG,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAACxG;AACH,UAAM,IAAIyG,MAAM,4BAA4B;AAE9C,SAAOzG;AACT;AAEA,eAAsB0G,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,UAAMC,gCAAmB;IACrC1F,MAAM;IACNsF;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBzD,QAAQ6D,IAAG,CAAA,kCAAoC;AAEvF,MAAMC,eAAeP,kBAAAA;AACrB,MAAI,CAACO;AACH,UAAM,IAAIL,MAAM,yCAAyC;AAE3D,SAAOK;AACT;",
5
- "names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "clientEnvDefine", "loadEnv", "mode", "devAndProdPlugins", "name", "define", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "resolve", "alias", "tslib", "resolvePath", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "process", "env", "NODE_ENV", "server", "url", "environments", "client", "ssr", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "CACHE_KEY", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "cwd", "foundOptions"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;qBAA4B,0BAC5B,qBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAMO,iBACP,mBAA0B,yBAC1B,0BAAO,gCACP,qBAA4B,iCAC5B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCAEvC,4BAAmD,iCACnD,0BAAiC;AAEjCA,mBAAAA,QAAOC,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAAIC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA6B,CAAC,GAI5CA,iBA+BEA;AAlCNC,eAAaD,WAGTA,kBAAAA,QAAQE,YAAM,QAAdF,oBAAAA,SAAAA,SAAAA,gBAAgBG,oBAAmB,UAChCA,sCAAAA,GAGPN,WAAW,uBAA0BG;AAGrC,MAAM,EAAEI,aAAY,QAAKC,6BAAgB,OAA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MAAI,CAACM;AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
5
+ "names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "clientEnvDefine", "loadEnv", "mode", "devAndProdPlugins", "name", "define", "ssr", "disableAutoDepsPreBundling", "autoPreBundleDepsForSsrPlugin", "root", "process", "cwd", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "resolve", "alias", "tslib", "resolvePath", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "env", "NODE_ENV", "server", "url", "environments", "client", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "path", "relative", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "clientTreeShakePlugin", "__vxrnAddWebPluginsProd", "createFileSystemRouter", "generateTypesForRoutes", "fixDependenciesPlugin", "deps", "createVirtualEntry", "app", "CACHE_KEY", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "foundOptions"]
6
6
  }
@@ -1,7 +1,18 @@
1
- const getPageExport = (exported) => exported.default || // because HMR fails with default exports, allow exporting something else
1
+ const getPageLikeExports = (x) => x !== "loader" && x[0].toUpperCase() === x[0], getPageExport = (exported) => exported.default || // because HMR fails with default exports, allow exporting something else
2
2
  // we just find the first non-loader export for now...
3
3
  (() => {
4
- const nonLoader = Object.keys(exported).find((x) => x !== "loader" && x[0].toUpperCase() === x[0]);
4
+ const keys = Object.keys(exported);
5
+ process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
6
+
7
+ If there is no default export, One uses the first capitalized non-default export.
8
+ This is because React Refresh, the hot reloading library, does not work on default
9
+ exports, so you may prefer to use non-default exports. But exporting multiple can
10
+ cause issues, as browser clients and server runtimes may not sort the export keys
11
+ the same.
12
+
13
+ Be sure to only export a single capitalized non-default export per-route.
14
+ `);
15
+ const nonLoader = keys.find(getPageLikeExports);
5
16
  if (nonLoader)
6
17
  return exported[nonLoader];
7
18
  })();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/getPageExport.ts"],
4
- "mappings": "AAAO,MAAM,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AAEL,QAAM,YADO,OAAO,KAAK,QAAQ,EACV,KAAK,CAAC,MAAM,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,CAAC;AAChF,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
4
+ "mappings": "AAAA,MAAM,qBAAqB,CAAC,MAAc,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,GAEzE,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AACL,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,EAAI,QAAQ,IAAI,aAAa,iBACF,KAAK,OAAO,kBAAkB,EAClC,SAAS,KAC5B,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;AAIP,QAAM,YAAY,KAAK,KAAK,kBAAkB;AAC9C,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,9 +1,21 @@
1
- const getPageExport = exported => exported.default ||
2
- // because HMR fails with default exports, allow exporting something else
3
- // we just find the first non-loader export for now...
4
- (() => {
5
- const nonLoader = Object.keys(exported).find(x => x !== "loader" && x[0].toUpperCase() === x[0]);
6
- if (nonLoader) return exported[nonLoader];
7
- })();
1
+ const getPageLikeExports = x => x !== "loader" && x[0].toUpperCase() === x[0],
2
+ getPageExport = exported => exported.default ||
3
+ // because HMR fails with default exports, allow exporting something else
4
+ // we just find the first non-loader export for now...
5
+ (() => {
6
+ const keys = Object.keys(exported);
7
+ process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
8
+
9
+ If there is no default export, One uses the first capitalized non-default export.
10
+ This is because React Refresh, the hot reloading library, does not work on default
11
+ exports, so you may prefer to use non-default exports. But exporting multiple can
12
+ cause issues, as browser clients and server runtimes may not sort the export keys
13
+ the same.
14
+
15
+ Be sure to only export a single capitalized non-default export per-route.
16
+ `);
17
+ const nonLoader = keys.find(getPageLikeExports);
18
+ if (nonLoader) return exported[nonLoader];
19
+ })();
8
20
  export { getPageExport };
9
21
  //# sourceMappingURL=getPageExport.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["getPageExport","exported","default","nonLoader","Object","keys","find","x","toUpperCase"],"sources":["../../../src/utils/getPageExport.ts"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,aAAA,GAAiBC,QAAA,IAE1BA,QAAA,CAASC,OAAA;AAAA;AAAA;AAAA,CAGR,MAAM;EAEL,MAAMC,SAAA,GADOC,MAAA,CAAOC,IAAA,CAAKJ,QAAQ,EACVK,IAAA,CAAMC,CAAA,IAAMA,CAAA,KAAM,YAAYA,CAAA,CAAE,CAAC,EAAEC,WAAA,CAAY,MAAMD,CAAA,CAAE,CAAC,CAAC;EAChF,IAAIJ,SAAA,EACF,OAAOF,QAAA,CAASE,SAAS;AAE7B,GAAG","ignoreList":[]}
1
+ {"version":3,"names":["getPageLikeExports","x","toUpperCase","getPageExport","exported","default","keys","Object","process","env","NODE_ENV","filter","length","console","warn","nonLoader","find"],"sources":["../../../src/utils/getPageExport.ts"],"sourcesContent":[null],"mappings":"AAAA,MAAMA,kBAAA,GAAsBC,CAAA,IAAcA,CAAA,KAAM,YAAYA,CAAA,CAAE,CAAC,EAAEC,WAAA,CAAY,MAAMD,CAAA,CAAE,CAAC;EAEzEE,aAAA,GAAiBC,QAAA,IAE1BA,QAAA,CAASC,OAAA;EAAA;EAAA;EAAA,CAGR,MAAM;IACL,MAAMC,IAAA,GAAOC,MAAA,CAAOD,IAAA,CAAKF,QAAQ;IAE7BI,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,iBACFJ,IAAA,CAAKK,MAAA,CAAOX,kBAAkB,EAClCY,MAAA,GAAS,KAC5BC,OAAA,CAAQC,IAAA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;IAIP,MAAMC,SAAA,GAAYT,IAAA,CAAKU,IAAA,CAAKhB,kBAAkB;IAC9C,IAAIe,SAAA,EACF,OAAOX,QAAA,CAASW,SAAS;EAE7B,GAAG","ignoreList":[]}
@@ -1,10 +1,24 @@
1
- var getPageExport = function(exported) {
1
+ var getPageLikeExports = function(x) {
2
+ return x !== "loader" && x[0].toUpperCase() === x[0];
3
+ }, getPageExport = function(exported) {
2
4
  return exported.default || // because HMR fails with default exports, allow exporting something else
3
5
  // we just find the first non-loader export for now...
4
6
  function() {
5
- var keys = Object.keys(exported), nonLoader = keys.find(function(x) {
6
- return x !== "loader" && x[0].toUpperCase() === x[0];
7
- });
7
+ var keys = Object.keys(exported);
8
+ if (process.env.NODE_ENV === "development") {
9
+ var upperCaseExports = keys.filter(getPageLikeExports);
10
+ upperCaseExports.length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
11
+
12
+ If there is no default export, One uses the first capitalized non-default export.
13
+ This is because React Refresh, the hot reloading library, does not work on default
14
+ exports, so you may prefer to use non-default exports. But exporting multiple can
15
+ cause issues, as browser clients and server runtimes may not sort the export keys
16
+ the same.
17
+
18
+ Be sure to only export a single capitalized non-default export per-route.
19
+ `);
20
+ }
21
+ var nonLoader = keys.find(getPageLikeExports);
8
22
  if (nonLoader)
9
23
  return exported[nonLoader];
10
24
  }();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
4
- "mappings": "AAAO,IAAMA,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA,GACnBI,YAAYF,KAAKG,KAAK,SAACC,GAAAA;aAAMA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;;AAC9E,QAAIF;AACF,aAAOJ,SAASI,SAAAA;EAEpB,EAAA;AAEJ;",
5
- "names": ["getPageExport", "exported", "default", "keys", "Object", "nonLoader", "find", "x", "toUpperCase"]
4
+ "mappings": "AAAA,IAAMA,qBAAqB,SAACC,GAAAA;SAAcA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;GAExEE,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA;AAEzB,QAAII,QAAQC,IAAIC,aAAa,eAAe;AAC1C,UAAMC,mBAAmBL,KAAKM,OAAOZ,kBAAAA;AACrC,MAAIW,iBAAiBE,SAAS,KAC5BC,QAAQC,KAAK;;;;;;;;;aASV;IAEP;AAEA,QAAMC,YAAYV,KAAKW,KAAKjB,kBAAAA;AAC5B,QAAIgB;AACF,aAAOZ,SAASY,SAAAA;EAEpB,EAAA;AAEJ;",
5
+ "names": ["getPageLikeExports", "x", "toUpperCase", "getPageExport", "exported", "default", "keys", "Object", "process", "env", "NODE_ENV", "upperCaseExports", "filter", "length", "console", "warn", "nonLoader", "find"]
6
6
  }
@@ -3,7 +3,13 @@ import events from "node:events";
3
3
  import path, { dirname, resolve } from "node:path";
4
4
  import { loadConfigFromFile } from "vite";
5
5
  import tsconfigPaths from "vite-tsconfig-paths";
6
- import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
6
+ import {
7
+ autoPreBundleDepsForSsrPlugin,
8
+ getOptimizeDeps,
9
+ getOptionsFilled,
10
+ isWebEnvironment,
11
+ loadEnv
12
+ } from "vxrn";
7
13
  import { CACHE_KEY } from "../constants";
8
14
  import "../polyfills-server";
9
15
  import { existsAsync } from "../utils/existsAsync";
@@ -33,6 +39,11 @@ function one(options = {}) {
33
39
  };
34
40
  }
35
41
  },
42
+ ...options.ssr?.disableAutoDepsPreBundling ? [] : [
43
+ autoPreBundleDepsForSsrPlugin({
44
+ root: vxrnOptions?.root || process.cwd()
45
+ })
46
+ ],
36
47
  // proxy because you cant add a plugin inside a plugin
37
48
  new Proxy(
38
49
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": "AAAA,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,kBAAkB,eAAe;AAC7E,SAAS,iBAAiB;AAC1B,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AAEvC,SAAS,oBAAoB,sBAAsB;AACnD,SAAS,wBAAwB;AAEjC,OAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAGT,QAAQ,QAAQ,mBAAmB,MAChC,eAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EA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AAM;AAAA,MACN,SAAS;AAAA,MAET,mBAAmB,aAAa;AAC9B,eAAO,iBAAiB,WAAW;AAAA,MACrC;AAAA,MAEA,MAAM,UAAU,IAAI,WAAW,IAAI;AAGjC,YAFuB,gBAAgB,KAAK,QAAQ,GAEhC;AAClB,gBAAM,eAAe,QAAQ,QAAQ,QAAQ,GAAG,EAAE,GAC5C,UAAU,aAAa,QAAQ,WAAW,EAAE,IAAI;AACtD,cAAI,YAAY,GAAI;AACpB,cAAI;AACF,kBAAM,gBAAgB,eAAe;AACrC,gBAAI,MAAM,YAAY,aAAa;AACjC,qBAAO;AAET,gBAAI,MAAM,YAAY,OAAO;AAC3B,qBAAO;AAAA,UAEX,SAAS,KAAK;AACZ,oBAAQ,KAAK,uBAAuB,GAAG;AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,SAAS,CAAC,cAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,4BAA4B;AAE9C,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,MAAM,mBAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,sBAAsB,QAAQ,IAAI,CAAC,kCAAkC;AAEvF,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -3,7 +3,7 @@ import events from "node:events";
3
3
  import path, { dirname, resolve } from "node:path";
4
4
  import { loadConfigFromFile } from "vite";
5
5
  import tsconfigPaths from "vite-tsconfig-paths";
6
- import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
6
+ import { autoPreBundleDepsForSsrPlugin, getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
7
7
  import { CACHE_KEY } from "../constants.mjs";
8
8
  import "../polyfills-server.mjs";
9
9
  import { existsAsync } from "../utils/existsAsync.mjs";
@@ -38,7 +38,9 @@ function one(options = {}) {
38
38
  define: clientEnvDefine
39
39
  };
40
40
  }
41
- },
41
+ }, ...(options.ssr?.disableAutoDepsPreBundling ? [] : [autoPreBundleDepsForSsrPlugin({
42
+ root: vxrnOptions?.root || process.cwd()
43
+ })]),
42
44
  // proxy because you cant add a plugin inside a plugin
43
45
  new Proxy({
44
46
  name: "one:tsconfig-paths",
@@ -1 +1 @@
1
- {"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","web","defaultRenderMode","JSON","stringify","setupFile","process","env","NODE_ENV","server","url","environments","client","ssr","ios","android","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","cwd","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,OAAOC,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,EAAkBC,OAAA,QAAe;AAC7E,SAASC,SAAA,QAAiB;AAC1B,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AAEvC,SAASC,kBAAA,EAAoBC,cAAA,QAAsB;AACnD,SAASC,gBAAA,QAAwB;AAEjCnB,MAAA,CAAOoB,eAAA,CAAgB,GAAK;AAG5BC,UAAA,CAAWC,qBAAA,GAAwB;AAE5B,SAASC,IAAIC,OAAA,GAA6B,CAAC,GAAiB;EACjEC,UAAA,GAAaD,OAAA,EAGTA,OAAA,CAAQE,MAAA,EAAQZ,cAAA,KAAmB,MAChCA,cAAA,CAAe,GAGtBO,UAAA,CAAWM,oBAAA,GAA0BH,OAAA;EAGrC,MAAM;MAAEI;IAAa,IAAItB,eAAA,CAAgB,OAAO;IAC1CuB,WAAA,GAAcD,YAAA,CAAaE,OAAA;IAC3BC,eAAA,GAAkB,IAAIC,MAAA;IAAA;IAAA;IAG1B,GAAGH,WAAA,CAAYI,GAAA,CAAKC,EAAA,IAAOA,EAAA,CAAGC,OAAA,CAAQ,uBAAuB,MAAM,CAAC,EAAEC,IAAA,CAAK,GAAG,CAAC,EACjF;EAEA,IAAIC,mBAAA,GAAqC;EAEzC,MAAMC,WAAA,GAAc/B,gBAAA,CAAiB;IAE/B;MAAEgC;IAAgB,IAAI9B,OAAA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AI,CAACmF,OAAA,EAAS,MAAM,IAAIC,KAAA,CAAM,yCAAyC;IACvE,MAAMC,kBAAA,CAAmBF,OAAO;EAClC;EACA,IAAI,CAACnF,UAAA,EACH,MAAM,IAAIoF,KAAA,CAAM,4BAA4B;EAE9C,OAAOpF,UAAA;AACT;AAEA,eAAsBqF,mBAAmBF,OAAA,EAA4B;EAKnE,IAAI,EAJU,MAAMxG,kBAAA,CAAmB;IACrCoC,IAAA,EAAM;IACNoE;EACF,CAAC,IAEC,MAAM,IAAIC,KAAA,CAAM,sBAAsB1C,OAAA,CAAQ4C,GAAA,CAAI,CAAC,kCAAkC;EAEvF,MAAMC,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,yCAAyC;EAE3D,OAAOG,YAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","autoPreBundleDepsForSsrPlugin","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","ssr","disableAutoDepsPreBundling","root","process","cwd","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ios","android","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,OAAOC,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,OAAA,QAAe;AACvC,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SACEC,6BAAA,EACAC,eAAA,EACAC,gBAAA,EACAC,gBAAA,EACAC,OAAA,QACK;AACP,SAASC,SAAA,QAAiB;AAC1B,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AAEvC,SAASC,kBAAA,EAAoBC,cAAA,QAAsB;AACnD,SAASC,gBAAA,QAAwB;AAEjCpB,MAAA,CAAOqB,eAAA,CAAgB,GAAK;AAG5BC,UAAA,CAAWC,qBAAA,GAAwB;AAE5B,SAASC,IAAIC,OAAA,GAA6B,CAAC,GAAiB;EACjEC,UAAA,GAAaD,OAAA,EAGTA,OAAA,CAAQE,MAAA,EAAQZ,cAAA,KAAmB,MAChCA,cAAA,CAAe,GAGtBO,UAAA,CAAWM,oBAAA,GAA0BH,OAAA;EAGrC,MAAM;MAAEI;IAAa,IAAItB,eAAA,CAAgB,OAAO;IAC1CuB,WAAA,GAAcD,YAAA,CAAaE,OAAA;IAC3BC,eAAA,GAAkB,IAAIC,MAAA;IAAA;IAAA;IAG1B,GAAGH,WAAA,CAAYI,GAAA,CAAKC,EAAA,IAAOA,EAAA,CAAGC,OAAA,CAAQ,uBAAuB,MAAM,CAAC,EAAEC,IAAA,CAAK,GAAG,CAAC,EACjF;EAEA,IAAIC,mBAAA,GAAqC;EAEzC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AA,EAAK;UACZC,OAAA,CAAQC,IAAA,CAAK,uBAAuBF,GAAG;QACzC;MACF;IACF;EACF,GAEAtF,gBAAA,CAAiB;IACfyF,OAAA,EAAS,CAAC1F,cAAc;EAC1B,CAAC,EACH;AACF;AAEA,IAAIO,UAAA,GAAuC;AAE3C,eAAeoF,kBAAkBC,OAAA,EAA6B;EAC5D,IAAI,CAACrF,UAAA,EAAY;IACf,IAAI,CAACqF,OAAA,EAAS,MAAM,IAAIC,KAAA,CAAM,yCAAyC;IACvE,MAAMC,kBAAA,CAAmBF,OAAO;EAClC;EACA,IAAI,CAACrF,UAAA,EACH,MAAM,IAAIsF,KAAA,CAAM,4BAA4B;EAE9C,OAAOtF,UAAA;AACT;AAEA,eAAsBuF,mBAAmBF,OAAA,EAA4B;EAKnE,IAAI,EAJU,MAAM3G,kBAAA,CAAmB;IACrCqC,IAAA,EAAM;IACNsE;EACF,CAAC,IAEC,MAAM,IAAIC,KAAA,CAAM,sBAAsBhE,OAAA,CAAQC,GAAA,CAAI,CAAC,kCAAkC;EAEvF,MAAMiE,YAAA,GAAeJ,iBAAA,CAAkB;EACvC,IAAI,CAACI,YAAA,EACH,MAAM,IAAIF,KAAA,CAAM,yCAAyC;EAE3D,OAAOE,YAAA;AACT","ignoreList":[]}
@@ -3,7 +3,7 @@ import events from "node:events";
3
3
  import path, { dirname, resolve } from "node:path";
4
4
  import { loadConfigFromFile } from "vite";
5
5
  import tsconfigPaths from "vite-tsconfig-paths";
6
- import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
6
+ import { autoPreBundleDepsForSsrPlugin, getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
7
7
  import { CACHE_KEY } from "../constants";
8
8
  import "../polyfills-server";
9
9
  import { existsAsync } from "../utils/existsAsync";
@@ -17,7 +17,7 @@ import { vitePluginSsrCss } from "./vitePluginSsrCss";
17
17
  events.setMaxListeners(1e3);
18
18
  globalThis.__vxrnEnableNativeEnv = !0;
19
19
  function one() {
20
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config;
20
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _options_config, _options_ssr;
21
21
  oneOptions = options, ((_options_config = options.config) === null || _options_config === void 0 ? void 0 : _options_config.ensureTSConfig) !== !1 && ensureTSConfig(), globalThis.__vxrnPluginConfig__ = options;
22
22
  var { optimizeDeps } = getOptimizeDeps("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
23
23
  // santize ids for regex
@@ -34,6 +34,11 @@ function one() {
34
34
  };
35
35
  }
36
36
  },
37
+ ...!((_options_ssr = options.ssr) === null || _options_ssr === void 0) && _options_ssr.disableAutoDepsPreBundling ? [] : [
38
+ autoPreBundleDepsForSsrPlugin({
39
+ root: vxrnOptions?.root || process.cwd()
40
+ })
41
+ ],
37
42
  // proxy because you cant add a plugin inside a plugin
38
43
  new Proxy({
39
44
  name: "one:tsconfig-paths",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/Users/n8/one/packages/one/src/vite/one.ts"],
4
- "mappings": "AAAA,SAASA,mBAAmB;AAC5B,OAAOC,YAAY;AACnB,OAAOC,QAAQC,SAASC,eAAe;AACvC,SAA0DC,0BAA0B;AACpF,OAAOC,mBAAmB;AAC1B,SAASC,iBAAiBC,kBAAkBC,kBAAkBC,eAAe;AAC7E,SAASC,iBAAiB;AAC1B,OAAO;AACP,SAASC,mBAAmB;AAC5B,SAASC,6BAA6B;AACtC,SAASC,8BAA8B;AACvC,SAASC,sBAAsB;AAC/B,SAASC,6BAA6B;AACtC,SAASC,8BAA8B;AAEvC,SAASC,oBAAoBC,sBAAsB;AACnD,SAASC,wBAAwB;AAEjCnB,OAAOoB,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAAIC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAA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ACrB,MAAI,CAACM;AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
5
- "names": ["resolvePath", "events", "path", "dirname", "resolve", "loadConfigFromFile", "tsconfigPaths", "getOptimizeDeps", "getOptionsFilled", "isWebEnvironment", "loadEnv", "CACHE_KEY", "existsAsync", "clientTreeShakePlugin", "createFileSystemRouter", "ensureTSConfig", "fixDependenciesPlugin", "generateTypesForRoutes", "createVirtualEntry", "virtualEntryId", "vitePluginSsrCss", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "optimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "clientEnvDefine", "mode", "devAndProdPlugins", "name", "define", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "alias", "tslib", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "process", "env", "NODE_ENV", "server", "url", "environments", "client", "ssr", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "__vxrnAddWebPluginsProd", "deps", "app", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "importer", "shouldOptimize", "test", "absolutePath", "webPath", "directoryPath", "err", "console", "warn", "entries", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "cwd", "foundOptions"]
4
+ "mappings": "AAAA,SAASA,mBAAmB;AAC5B,OAAOC,YAAY;AACnB,OAAOC,QAAQC,SAASC,eAAe;AACvC,SAA0DC,0BAA0B;AACpF,OAAOC,mBAAmB;AAC1B,SACEC,+BACAC,iBACAC,kBACAC,kBACAC,eACK;AACP,SAASC,iBAAiB;AAC1B,OAAO;AACP,SAASC,mBAAmB;AAC5B,SAASC,6B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AuC;AAE3C,eAAesF,kBAAkBC,SAA2B;AAC1D,MAAI,CAACvF,YAAY;AACf,QAAI,CAACuF,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAACvF;AACH,UAAM,IAAIwF,MAAM,4BAA4B;AAE9C,SAAOxF;AACT;AAEA,eAAsByF,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,MAAMhH,mBAAmB;IACrCoC,MAAM;IACNyE;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBnE,QAAQC,IAAG,CAAA,kCAAoC;AAEvF,MAAMqE,eAAeL,kBAAAA;AACrB,MAAI,CAACK;AACH,UAAM,IAAIH,MAAM,yCAAyC;AAE3D,SAAOG;AACT;",
5
+ "names": ["resolvePath", "events", "path", "dirname", "resolve", "loadConfigFromFile", "tsconfigPaths", "autoPreBundleDepsForSsrPlugin", "getOptimizeDeps", "getOptionsFilled", "isWebEnvironment", "loadEnv", "CACHE_KEY", "existsAsync", "clientTreeShakePlugin", "createFileSystemRouter", "ensureTSConfig", "fixDependenciesPlugin", "generateTypesForRoutes", "createVirtualEntry", "virtualEntryId", "vitePluginSsrCss", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "config", "optimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "clientEnvDefine", "mode", "devAndProdPlugins", "name", "define", "ssr", "disableAutoDepsPreBundling", "root", "process", "cwd", "Proxy", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "alias", "tslib", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "env", "NODE_ENV", "server", "url", "environments", "client", "ios", "android", "zero", "TESTING", "REPLICACHE_VERSION", "ZERO_VERSION", "hotUpdate", "modules", "m", "relativePath", "relative", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "__vxrnAddWebPluginsProd", "deps", "app", "sharedNativeConfig", "react", "applyToEnvironment", "environment", "importer", "shouldOptimize", "test", "absolutePath", "webPath", "directoryPath", "err", "console", "warn", "entries", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "foundOptions"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.1.317",
3
+ "version": "1.1.319",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "sideEffects": false,
@@ -91,14 +91,14 @@
91
91
  "@react-navigation/native-stack": "~6.9.13",
92
92
  "@react-navigation/routers": "~6.1.9",
93
93
  "@ungap/structured-clone": "^1.2.0",
94
- "@vxrn/resolve": "1.1.317",
95
- "@vxrn/tslib-lite": "1.1.317",
96
- "@vxrn/universal-color-scheme": "1.1.317",
97
- "@vxrn/use-isomorphic-layout-effect": "1.1.317",
94
+ "@vxrn/resolve": "1.1.319",
95
+ "@vxrn/tslib-lite": "1.1.319",
96
+ "@vxrn/universal-color-scheme": "1.1.319",
97
+ "@vxrn/use-isomorphic-layout-effect": "1.1.319",
98
98
  "babel-dead-code-elimination": "^1.0.6",
99
99
  "citty": "^0.1.6",
100
100
  "core-js": "^3.38.1",
101
- "create-vxrn": "1.1.317",
101
+ "create-vxrn": "1.1.319",
102
102
  "escape-string-regexp": "^5.0.0",
103
103
  "expo-linking": "~6.3.1",
104
104
  "expo-modules-core": "^1.12.24",
@@ -120,7 +120,7 @@
120
120
  "url-parse": "^1.5.10",
121
121
  "vite": "6.0.0-beta.1",
122
122
  "vite-tsconfig-paths": "^5.0.1",
123
- "vxrn": "1.1.317",
123
+ "vxrn": "1.1.319",
124
124
  "ws": "^8.18.0",
125
125
  "xxhashjs": "^0.2.2"
126
126
  },
@@ -1,11 +1,30 @@
1
- export const getPageExport = (exported) => {
1
+ const getPageLikeExports = (x: string) => x !== 'loader' && x[0].toUpperCase() === x[0]
2
+
3
+ export const getPageExport = (exported: Record<string, any>) => {
2
4
  return (
3
5
  exported.default ||
4
6
  // because HMR fails with default exports, allow exporting something else
5
7
  // we just find the first non-loader export for now...
6
8
  (() => {
7
9
  const keys = Object.keys(exported)
8
- const nonLoader = keys.find((x) => x !== 'loader' && x[0].toUpperCase() === x[0])
10
+
11
+ if (process.env.NODE_ENV === 'development') {
12
+ const upperCaseExports = keys.filter(getPageLikeExports)
13
+ if (upperCaseExports.length > 1) {
14
+ console.warn(`Warning: You've exported more than one uppercase non-default export.
15
+
16
+ If there is no default export, One uses the first capitalized non-default export.
17
+ This is because React Refresh, the hot reloading library, does not work on default
18
+ exports, so you may prefer to use non-default exports. But exporting multiple can
19
+ cause issues, as browser clients and server runtimes may not sort the export keys
20
+ the same.
21
+
22
+ Be sure to only export a single capitalized non-default export per-route.
23
+ `)
24
+ }
25
+ }
26
+
27
+ const nonLoader = keys.find(getPageLikeExports)
9
28
  if (nonLoader) {
10
29
  return exported[nonLoader]
11
30
  }
package/src/vite/one.ts CHANGED
@@ -3,7 +3,13 @@ import events from 'node:events'
3
3
  import path, { dirname, resolve } from 'node:path'
4
4
  import { type Plugin, type PluginOption, type UserConfig, loadConfigFromFile } from 'vite'
5
5
  import tsconfigPaths from 'vite-tsconfig-paths'
6
- import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from 'vxrn'
6
+ import {
7
+ autoPreBundleDepsForSsrPlugin,
8
+ getOptimizeDeps,
9
+ getOptionsFilled,
10
+ isWebEnvironment,
11
+ loadEnv,
12
+ } from 'vxrn'
7
13
  import { CACHE_KEY } from '../constants'
8
14
  import '../polyfills-server'
9
15
  import { existsAsync } from '../utils/existsAsync'
@@ -56,6 +62,14 @@ export function one(options: One.PluginOptions = {}): PluginOption {
56
62
  },
57
63
  },
58
64
 
65
+ ...(options.ssr?.disableAutoDepsPreBundling
66
+ ? []
67
+ : [
68
+ autoPreBundleDepsForSsrPlugin({
69
+ root: vxrnOptions?.root || process.cwd(),
70
+ }),
71
+ ]),
72
+
59
73
  // proxy because you cant add a plugin inside a plugin
60
74
  new Proxy(
61
75
  {
@@ -265,10 +279,10 @@ export function one(options: One.PluginOptions = {}): PluginOption {
265
279
  config() {
266
280
  return {
267
281
  define: {
268
- ...options.app?.key && {
282
+ ...(options.app?.key && {
269
283
  'process.env.ONE_APP_NAME': JSON.stringify(options.app.key),
270
284
  'import.meta.env.ONE_APP_NAME': JSON.stringify(options.app.key),
271
- },
285
+ }),
272
286
 
273
287
  'process.env.ONE_CACHE_KEY': JSON.stringify(CACHE_KEY),
274
288
  'import.meta.env.ONE_CACHE_KEY': JSON.stringify(CACHE_KEY),
package/src/vite/types.ts CHANGED
@@ -123,6 +123,13 @@ export namespace One {
123
123
  deps?: FixDependencies
124
124
 
125
125
  afterBuild?: (props: AfterBuildProps) => void | Promise<void>
126
+
127
+ ssr?: {
128
+ /**
129
+ * Do not automatically scan for dependencies to pre-bundle for SSR.
130
+ */
131
+ disableAutoDepsPreBundling?: boolean
132
+ }
126
133
  }
127
134
 
128
135
  export interface RouteContext {
@@ -1,2 +1,2 @@
1
- export declare const getPageExport: (exported: any) => any;
1
+ export declare const getPageExport: (exported: Record<string, any>) => any;
2
2
  //# sourceMappingURL=getPageExport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPageExport.d.ts","sourceRoot":"","sources":["../../src/utils/getPageExport.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,wBAazB,CAAA"}
1
+ {"version":3,"file":"getPageExport.d.ts","sourceRoot":"","sources":["../../src/utils/getPageExport.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,aAAc,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QA8B1D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAI1F,OAAO,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CA8TjE;AAeD,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,8BAalE"}
1
+ {"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../../src/vite/one.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,KAAK,YAAY,EAAuC,MAAM,MAAM,CAAA;AAU1F,OAAO,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AASlC,wBAAgB,GAAG,CAAC,OAAO,GAAE,GAAG,CAAC,aAAkB,GAAG,YAAY,CAsUjE;AAeD,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,8BAalE"}
@@ -99,6 +99,12 @@ export declare namespace One {
99
99
  };
100
100
  deps?: FixDependencies;
101
101
  afterBuild?: (props: AfterBuildProps) => void | Promise<void>;
102
+ ssr?: {
103
+ /**
104
+ * Do not automatically scan for dependencies to pre-bundle for SSR.
105
+ */
106
+ disableAutoDepsPreBundling?: boolean;
107
+ };
102
108
  };
103
109
  interface RouteContext {
104
110
  keys(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vite/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AACjF,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,eAAe,IAAI,mBAAmB,EACtC,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EAClB,MAAM,MAAM,CAAA;AAEb,yBAAiB,GAAG,CAAC;IACnB,KAAY,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,aAAa,CAAC,GAA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