one 1.1.301 → 1.1.303

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/cjs/cli/main.js +2 -2
  2. package/dist/cjs/cli/main.js.map +1 -1
  3. package/dist/cjs/cli/main.native.js +2 -2
  4. package/dist/cjs/cli/main.native.js.map +1 -1
  5. package/dist/cjs/cli/run.js +1 -0
  6. package/dist/cjs/cli/run.js.map +1 -1
  7. package/dist/cjs/cli/run.native.js +1 -0
  8. package/dist/cjs/cli/run.native.js.map +2 -2
  9. package/dist/cjs/cli.js +48 -16
  10. package/dist/cjs/cli.js.map +2 -2
  11. package/dist/cjs/cli.native.js +46 -23
  12. package/dist/cjs/cli.native.js.map +2 -2
  13. package/dist/cjs/useLoader.js +1 -1
  14. package/dist/cjs/useLoader.js.map +1 -1
  15. package/dist/cjs/useLoader.native.js +1 -1
  16. package/dist/cjs/useLoader.native.js.map +1 -1
  17. package/dist/cjs/vite/one.js.map +1 -1
  18. package/dist/cjs/vite/one.native.js.map +1 -1
  19. package/dist/esm/cli/main.js +2 -2
  20. package/dist/esm/cli/main.js.map +1 -1
  21. package/dist/esm/cli/main.mjs +2 -2
  22. package/dist/esm/cli/main.mjs.map +1 -1
  23. package/dist/esm/cli/main.native.js +2 -2
  24. package/dist/esm/cli/main.native.js.map +1 -1
  25. package/dist/esm/cli/run.js +1 -0
  26. package/dist/esm/cli/run.js.map +1 -1
  27. package/dist/esm/cli/run.mjs +1 -0
  28. package/dist/esm/cli/run.mjs.map +1 -1
  29. package/dist/esm/cli/run.native.js +1 -0
  30. package/dist/esm/cli/run.native.js.map +2 -2
  31. package/dist/esm/cli.js +48 -15
  32. package/dist/esm/cli.js.map +2 -2
  33. package/dist/esm/cli.mjs +54 -15
  34. package/dist/esm/cli.mjs.map +1 -1
  35. package/dist/esm/cli.native.js +46 -22
  36. package/dist/esm/cli.native.js.map +2 -2
  37. package/dist/esm/useLoader.js +1 -1
  38. package/dist/esm/useLoader.js.map +1 -1
  39. package/dist/esm/useLoader.mjs +1 -1
  40. package/dist/esm/useLoader.mjs.map +1 -1
  41. package/dist/esm/useLoader.native.js +1 -1
  42. package/dist/esm/useLoader.native.js.map +2 -2
  43. package/dist/esm/vite/one.js.map +1 -1
  44. package/dist/esm/vite/one.mjs.map +1 -1
  45. package/dist/esm/vite/one.native.js.map +1 -1
  46. package/package.json +7 -6
  47. package/src/cli/main.ts +3 -3
  48. package/src/cli/run.ts +4 -0
  49. package/src/cli.ts +59 -15
  50. package/src/useLoader.ts +1 -3
  51. package/src/vite/one.ts +1 -1
  52. package/types/cli/main.d.ts +3 -1
  53. package/types/cli/main.d.ts.map +1 -1
  54. package/types/cli/run.d.ts +1 -0
  55. package/types/cli/run.d.ts.map +1 -1
  56. package/types/useLoader.d.ts.map +1 -1
@@ -3,6 +3,7 @@ import { labelProcess } from "./label-process";
3
3
  async function run(args) {
4
4
  labelProcess("dev");
5
5
  var { dev } = await import("vxrn"), { start, stop } = await dev({
6
+ mode: args.mode,
6
7
  clean: args.clean,
7
8
  root: process.cwd(),
8
9
  server: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/run.ts"],
4
- "mappings": "AAAA,SAASA,4BAA4B;AACrC,SAASC,oBAAoB;AAE7B,eAAsBC,IAAIC,MAKzB;AACCF,eAAa,KAAA;AACb,MAAM,EAAEG,IAAG,IAAK,MAAM,OAAO,MAAA,GACvB,EAAEC,OAAOC,KAAI,IAAK,MAAMF,IAAI;IAChCG,OAAOJ,KAAKI;IACZC,MAAMC,QAAQC,IAAG;IACjBC,QAAQ;MACNC,OAAOT,KAAKS;MACZC,MAAMV,KAAKU;MACXC,MAAMX,KAAKW,OAAO,CAACX,KAAKW,OAAOC;IACjC;IACAC,SAAS;MACPC,QAAQjB;IACV;EACF,CAAA,GAEM,EAAEkB,aAAY,IAAK,MAAMb,MAAAA;AAE/BI,UAAQU,GAAG,cAAc,WAAA;AACvBb,SAAAA;EACF,CAAA,GAEAG,QAAQU,GAAG,UAAU,WAAA;AACnBb,SAAAA;EACF,CAAA,GAEAG,QAAQU,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,YAAQC,MAAMF,KAAKG,WAAWH,GAAAA;EAChC,CAAA,GAEA,MAAMF;AACR;",
5
- "names": ["virtualEntryIdNative", "labelProcess", "run", "args", "dev", "start", "stop", "clean", "root", "process", "cwd", "server", "https", "host", "port", "undefined", "entries", "native", "closePromise", "on", "err", "console", "error", "message"]
4
+ "mappings": "AAAA,SAASA,4BAA4B;AACrC,SAASC,oBAAoB;AAE7B,eAAsBC,IAAIC,MAMzB;AACCF,eAAa,KAAA;AAEb,MAAM,EAAEG,IAAG,IAAK,MAAM,OAAO,MAAA,GAEvB,EAAEC,OAAOC,KAAI,IAAK,MAAMF,IAAI;IAChCG,MAAMJ,KAAKI;IACXC,OAAOL,KAAKK;IACZC,MAAMC,QAAQC,IAAG;IACjBC,QAAQ;MACNC,OAAOV,KAAKU;MACZC,MAAMX,KAAKW;MACXC,MAAMZ,KAAKY,OAAO,CAACZ,KAAKY,OAAOC;IACjC;IACAC,SAAS;MACPC,QAAQlB;IACV;EACF,CAAA,GAEM,EAAEmB,aAAY,IAAK,MAAMd,MAAAA;AAE/BK,UAAQU,GAAG,cAAc,WAAA;AACvBd,SAAAA;EACF,CAAA,GAEAI,QAAQU,GAAG,UAAU,WAAA;AACnBd,SAAAA;EACF,CAAA,GAEAI,QAAQU,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,YAAQC,MAAMF,KAAKG,WAAWH,GAAAA;EAChC,CAAA,GAEA,MAAMF;AACR;",
5
+ "names": ["virtualEntryIdNative", "labelProcess", "run", "args", "dev", "start", "stop", "mode", "clean", "root", "process", "cwd", "server", "https", "host", "port", "undefined", "entries", "native", "closePromise", "on", "err", "console", "error", "message"]
6
6
  }
package/dist/esm/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
+ import colors from "picocolors";
2
3
  import { loadEnv } from "./vite/loadEnv";
3
4
  import { readFileSync } from "node:fs";
4
5
  import path from "node:path";
@@ -11,7 +12,15 @@ function getPackageVersion() {
11
12
  }
12
13
  const version = getPackageVersion();
13
14
  loadEnv(process.cwd());
14
- const dev = defineCommand({
15
+ path.sep !== "/" && console.warn(
16
+ colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(
17
+ " - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."
18
+ )
19
+ );
20
+ const modes = {
21
+ development: "development",
22
+ production: "production"
23
+ }, dev = defineCommand({
15
24
  meta: {
16
25
  name: "dev",
17
26
  version,
@@ -29,11 +38,21 @@ const dev = defineCommand({
29
38
  },
30
39
  https: {
31
40
  type: "boolean"
41
+ },
42
+ mode: {
43
+ type: "string",
44
+ description: 'If set to "production" you can run the development server but serve the production bundle'
32
45
  }
33
46
  },
34
- async run({ args }) {
47
+ async run({ args: { clean: clean2, host, https, mode, port } }) {
35
48
  const { run } = await import("./cli/run");
36
- await run(args);
49
+ await run({
50
+ clean: clean2,
51
+ host,
52
+ https,
53
+ mode: modes[mode],
54
+ port
55
+ });
37
56
  }
38
57
  }), buildCommand = defineCommand({
39
58
  meta: {
@@ -113,7 +132,7 @@ const dev = defineCommand({
113
132
  }
114
133
  }), runAndroid = defineCommand({
115
134
  meta: {
116
- name: "run:ios",
135
+ name: "run:android",
117
136
  version
118
137
  },
119
138
  args: {},
@@ -134,27 +153,41 @@ const dev = defineCommand({
134
153
  root: process.cwd()
135
154
  });
136
155
  }
156
+ }), subCommands = {
157
+ dev,
158
+ clean,
159
+ build: buildCommand,
160
+ prebuild,
161
+ "run:ios": runIos,
162
+ "run:android": runAndroid,
163
+ serve: serveCommand
164
+ }, subMain = defineCommand({
165
+ meta: {
166
+ name: "main",
167
+ version,
168
+ description: "Welcome to One"
169
+ },
170
+ subCommands
137
171
  }), main = defineCommand({
138
172
  meta: {
139
173
  name: "main",
140
174
  version,
141
175
  description: "Welcome to One"
142
176
  },
143
- args: {},
177
+ args: {
178
+ name: {
179
+ type: "positional",
180
+ description: "Folder name to place the app into",
181
+ required: !1
182
+ }
183
+ },
144
184
  async run({ args }) {
145
- if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
185
+ if (subCommands[args.name]) {
186
+ runMain(subMain);
146
187
  return;
188
+ }
147
189
  const { cliMain } = await import("./cli/main");
148
190
  await cliMain(args);
149
- },
150
- subCommands: {
151
- dev,
152
- clean,
153
- build: buildCommand,
154
- prebuild,
155
- "run:ios": runIos,
156
- "run:android": runAndroid,
157
- serve: serveCommand
158
191
  }
159
192
  });
160
193
  runMain(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": "AAAA,SAAS,eAAe,eAAe;AACvC,SAAS,eAAe;AACxB,SAAS,oBAAoB;AAC7B,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAE9B,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEjE,SADoB,KAAK,MAAM,aAAa,aAAa,OAAO,CAAC,EAC9C;AACrB;AAEA,MAAM,UAAU,kBAAkB;AAE7B,QAAQ,QAAQ,IAAI,CAAC;AAE1B,MAAM,MAAM,cAAc;AAAA,EACxB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,UAA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;AAAA,EACf,OAAO;AACT,GAGM,UAAU,cAAc;AAAA,EAC5B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA;AACF,CAAC,GAEK,OAAO,cAAc;AAAA,EACzB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,YAAY,KAAK,IAAI,GAAG;AAE1B,cAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAED,QAAQ,IAAI;",
5
+ "names": ["clean"]
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
+ import colors from "picocolors";
2
3
  import { loadEnv } from "./vite/loadEnv.mjs";
3
4
  import { readFileSync } from "node:fs";
4
5
  import path from "node:path";
@@ -11,7 +12,12 @@ function getPackageVersion() {
11
12
  }
12
13
  const version = getPackageVersion();
13
14
  loadEnv(process.cwd());
14
- const dev = defineCommand({
15
+ path.sep !== "/" && console.warn(colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
16
+ const modes = {
17
+ development: "development",
18
+ production: "production"
19
+ },
20
+ dev = defineCommand({
15
21
  meta: {
16
22
  name: "dev",
17
23
  version,
@@ -29,15 +35,31 @@ const dev = defineCommand({
29
35
  },
30
36
  https: {
31
37
  type: "boolean"
38
+ },
39
+ mode: {
40
+ type: "string",
41
+ description: 'If set to "production" you can run the development server but serve the production bundle'
32
42
  }
33
43
  },
34
44
  async run({
35
- args
45
+ args: {
46
+ clean: clean2,
47
+ host,
48
+ https,
49
+ mode,
50
+ port
51
+ }
36
52
  }) {
37
53
  const {
38
54
  run
39
55
  } = await import("./cli/run.mjs");
40
- await run(args);
56
+ await run({
57
+ clean: clean2,
58
+ host,
59
+ https,
60
+ mode: modes[mode],
61
+ port
62
+ });
41
63
  }
42
64
  }),
43
65
  buildCommand = defineCommand({
@@ -138,7 +160,7 @@ const dev = defineCommand({
138
160
  }),
139
161
  runAndroid = defineCommand({
140
162
  meta: {
141
- name: "run:ios",
163
+ name: "run:android",
142
164
  version
143
165
  },
144
166
  args: {},
@@ -167,30 +189,47 @@ const dev = defineCommand({
167
189
  });
168
190
  }
169
191
  }),
192
+ subCommands = {
193
+ dev,
194
+ clean,
195
+ build: buildCommand,
196
+ prebuild,
197
+ "run:ios": runIos,
198
+ "run:android": runAndroid,
199
+ serve: serveCommand
200
+ },
201
+ subMain = defineCommand({
202
+ meta: {
203
+ name: "main",
204
+ version,
205
+ description: "Welcome to One"
206
+ },
207
+ subCommands
208
+ }),
170
209
  main = defineCommand({
171
210
  meta: {
172
211
  name: "main",
173
212
  version,
174
213
  description: "Welcome to One"
175
214
  },
176
- args: {},
215
+ args: {
216
+ name: {
217
+ type: "positional",
218
+ description: "Folder name to place the app into",
219
+ required: !1
220
+ }
221
+ },
177
222
  async run({
178
223
  args
179
224
  }) {
180
- if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0])) return;
225
+ if (subCommands[args.name]) {
226
+ runMain(subMain);
227
+ return;
228
+ }
181
229
  const {
182
230
  cliMain
183
231
  } = await import("./cli/main.mjs");
184
232
  await cliMain(args);
185
- },
186
- subCommands: {
187
- dev,
188
- clean,
189
- build: buildCommand,
190
- prebuild,
191
- "run:ios": runIos,
192
- "run:android": runAndroid,
193
- serve: serveCommand
194
233
  }
195
234
  });
196
235
  runMain(main);
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE7BJ,OAAA,CAAQe,OAAA,CAAQC,GAAA,CAAI,CAAC;AAE1B,MAAMC,GAAA,GAAMnB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJF,IAAA,EAAM;MACR;MACAG,KAAA,EAAO;QACLH,IAAA,EAAM;MACR;IACF;IACA,MAAMI,IAAI;MAAEN;IAAK,GAAG;MAClB,MAAM;QAAEM;MAAI,IAAI,MAAM,OAAO,eAAW;MACxC,MAAMA,GA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,IAAI;MAAEN;IAAK,GAAG;MAClB,IAAI,CAAC,SAAS,YAAY,WAAW,aAAa,EAAEwB,QAAA,CAASxB,IAAA,CAAKyB,CAAA,CAAE,CAAC,CAAC,GAEpE;MAGF,MAAM;QAAEC;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ1B,IAAI;IACpB;IACA2B,WAAA,EAAa;MACX9B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACA,WAAWC,MAAA;MACX,eAAeC,UAAA;MACfH,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ4C,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","colors","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","sep","console","warn","bgYellow","yellow","modes","development","production","dev","name","description","args","clean","type","host","port","https","mode","run","clean2","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,OAAOC,MAAA,MAAY;AACnB,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,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MACNZ,OAAA;MACAa,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJF,IAAA,EAAM;QACJI,IAAA,EAAM;QACNH,WAAA,EAAa;QACbY,QAAA,EAAU;MACZ;IACF;IACA,MAAMJ,IAAI;MAAEP;IAAK,GAAG;MAClB,IAAIyB,WAAA,CAAYzB,IAAA,CAAKF,IAAI,GAAG;QAE1B5B,OAAA,CAAQwD,OAAO;QACf;MACF;MAEA,MAAM;QAAEE;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ5B,IAAI;IACpB;EACF,CAAC;AAED9B,OAAA,CAAQyD,IAAI","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import { defineCommand, runMain } from "citty";
2
+ import colors from "picocolors";
2
3
  import { loadEnv } from "./vite/loadEnv";
3
4
  import { readFileSync } from "node:fs";
4
5
  import path from "node:path";
@@ -11,7 +12,11 @@ function getPackageVersion() {
11
12
  }
12
13
  var version = getPackageVersion();
13
14
  loadEnv(process.cwd());
14
- var dev = defineCommand({
15
+ path.sep !== "/" && console.warn(colors.bgYellow("WARNING: UNSUPPORTED OS") + colors.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
16
+ var modes = {
17
+ development: "development",
18
+ production: "production"
19
+ }, dev = defineCommand({
15
20
  meta: {
16
21
  name: "dev",
17
22
  version,
@@ -29,11 +34,21 @@ var dev = defineCommand({
29
34
  },
30
35
  https: {
31
36
  type: "boolean"
37
+ },
38
+ mode: {
39
+ type: "string",
40
+ description: 'If set to "production" you can run the development server but serve the production bundle'
32
41
  }
33
42
  },
34
43
  async run(param) {
35
- var { args } = param, { run } = await import("./cli/run");
36
- await run(args);
44
+ var { args: { clean: clean2, host, https, mode, port } } = param, { run } = await import("./cli/run");
45
+ await run({
46
+ clean: clean2,
47
+ host,
48
+ https,
49
+ mode: modes[mode],
50
+ port
51
+ });
37
52
  }
38
53
  }), buildCommand = defineCommand({
39
54
  meta: {
@@ -113,7 +128,7 @@ var dev = defineCommand({
113
128
  }
114
129
  }), runAndroid = defineCommand({
115
130
  meta: {
116
- name: "run:ios",
131
+ name: "run:android",
117
132
  version
118
133
  },
119
134
  args: {},
@@ -134,33 +149,42 @@ var dev = defineCommand({
134
149
  root: process.cwd()
135
150
  });
136
151
  }
152
+ }), subCommands = {
153
+ dev,
154
+ clean,
155
+ build: buildCommand,
156
+ prebuild,
157
+ "run:ios": runIos,
158
+ "run:android": runAndroid,
159
+ serve: serveCommand
160
+ }, subMain = defineCommand({
161
+ meta: {
162
+ name: "main",
163
+ version,
164
+ description: "Welcome to One"
165
+ },
166
+ subCommands
137
167
  }), main = defineCommand({
138
168
  meta: {
139
169
  name: "main",
140
170
  version,
141
171
  description: "Welcome to One"
142
172
  },
143
- args: {},
173
+ args: {
174
+ name: {
175
+ type: "positional",
176
+ description: "Folder name to place the app into",
177
+ required: !1
178
+ }
179
+ },
144
180
  async run(param) {
145
181
  var { args } = param;
146
- if (![
147
- "clean",
148
- "prebuild",
149
- "run:ios",
150
- "run:android"
151
- ].includes(args._[0])) {
152
- var { cliMain } = await import("./cli/main");
153
- await cliMain(args);
182
+ if (subCommands[args.name]) {
183
+ runMain(subMain);
184
+ return;
154
185
  }
155
- },
156
- subCommands: {
157
- dev,
158
- clean,
159
- build: buildCommand,
160
- prebuild,
161
- "run:ios": runIos,
162
- "run:android": runAndroid,
163
- serve: serveCommand
186
+ var { cliMain } = await import("./cli/main");
187
+ await cliMain(args);
164
188
  }
165
189
  });
166
190
  runMain(main);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
4
- "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,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L;IACAM,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMM,IAAI,OAAQ;QAAR,EAAEN,KAAI,IAAN;AACR,QAAI;MAAC;MAAS;MAAY;MAAW;MAAeyB,SAASzB,KAAK0B,EAAE,CAAA,CAAE,GAKtE;UAAM,EAAEC,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,YAAMA,QAAQ3B,IAAAA;;EAChB;EACA4B,aAAa;IACXhC;IACAK;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;AAEAlC,QAAQ6C,IAAAA;",
5
- "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands"]
4
+ "mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,OAAOC,YAAY;AACnB,SAASC,eAAe;AACxB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEXJ,QAAQc,QAAQC,IAAG,CAAA;AAEpBb,KAAKc,QAAQ,OACfC,QAAQC,KACNnB,OAAOoB,SAAS,yBAAA,IACdpB,OAAOqB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OAAOJ;AACT,GAGMY,UAAUzD,cAAc;EAC5B4B,MAAM;IACJC,MAAM;IACNb;IACAc,aAAa;EACf;EACA0B;AACF,CAAA,GAEME,OAAO1D,cAAc;EACzB4B,MAAM;IACJC,MAAM;IACNb;IACAc,aAAa;EACf;EACAC,MAAM;IACJF,MAAM;MACJI,MAAM;MACNH,aAAa;MACbW,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN;AACR,QAAIyB,YAAYzB,KAAKF,IAAI,GAAG;AAE1B5B,cAAQwD,OAAAA;AACR;IACF;AAEA,QAAM,EAAEE,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ5B,IAAAA;EAChB;AACF,CAAA;AAEA9B,QAAQyD,IAAAA;",
5
+ "names": ["defineCommand", "runMain", "colors", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "sep", "console", "warn", "bgYellow", "yellow", "modes", "development", "production", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "subCommands", "subMain", "main", "cliMain"]
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
+ import { getLoaderPath } from "./cleanUrl";
2
3
  import { useActiveParams, useParams } from "./hooks";
3
4
  import { resolveHref } from "./link/href";
4
5
  import { useRouteNode } from "./Route";
5
6
  import { preloadingLoader } from "./router/router";
6
7
  import { dynamicImport } from "./utils/dynamicImport";
7
8
  import { weakKey } from "./utils/weakKey";
8
- import { getLoaderPath } from "./cleanUrl";
9
9
  const promises = {}, errors = {}, loadedData = {};
10
10
  function useLoader(loader) {
11
11
  const preloadedProps = globalThis.__vxrnLoaderProps__;
@@ -1,6 +1,6 @@
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iBAAiB,KAAK,CAAC,EAAE,GACnE,EAAE,QAAQ,OAAO,CAAC,GAAG;AAAA,cAC9B;AAAA,YACF;AAGA,mBAAO,MAAM,cAAc,WAAW;AAAA,UACxC,GAAG;AAEH,4BAAW,WAAW,IAAI,SAAS,OAAO,GACnC,WAAW,WAAW;AAAA,QAC/B,SAAS,KAAK;AACZ,yBAAQ,MAAM,yBAAyB,GAAG,EAAE,GAC5C,OAAO,WAAW,IAAI,KACtB,OAAO,SAAS,WAAW,GACpB;AAAA,QACT;AAAA,MACF;AACA,eAAS,WAAW,IAAI,QAAQ;AAAA,IAClC;AAEA,UAAM,SAAS,WAAW;AAAA,EAC5B;AAEA,SAAO,YAAY;AACrB;AAEA,MAAM,UAAU,oBAAI,IAAI,GAClB,UAAU,oBAAI,IAAI;AAExB,SAAS,WAAW,KAAU,OAAa;AACzC,QAAM,OAAO,MAAM,QAAQ,GAAG,IAAI,MAAM,KAAK,UAAU,KAAK;AAE5D,MAAI,OACE,CAAC,QAAQ,IAAI,GAAG,GAAG;AACrB,YAAQ,IAAI,KAAK,EAAI;AAErB,QAAI,OAAO,IAAI,KAAK;AACpB,IAAI,gBAAgB,YAClB,OAAO,KACJ,KAAK,CAAC,UAAU;AACf,cAAQ,IAAI,KAAK,KAAK;AAAA,IACxB,CAAC,EACA,MAAM,CAAC,QAAQ;AACd,cAAQ,MAAM,0BAA0B,GAAG,GAC3C,QAAQ,IAAI,KAAK,MAAS;AAAA,IAC5B,CAAC,IAEL,QAAQ,IAAI,KAAK,IAAI;AAAA,EACvB;AAGF,QAAM,UAAU,QAAQ,IAAI,GAAG;AAE/B,MAAI,mBAAmB;AACrB,UAAM;AAGR,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
+ import { getLoaderPath } from "./cleanUrl.mjs";
2
3
  import { useActiveParams, useParams } from "./hooks.mjs";
3
4
  import { resolveHref } from "./link/href.mjs";
4
5
  import { useRouteNode } from "./Route.mjs";
5
6
  import { preloadingLoader } from "./router/router.mjs";
6
7
  import { dynamicImport } from "./utils/dynamicImport.mjs";
7
8
  import { weakKey } from "./utils/weakKey.mjs";
8
- import { getLoaderPath } from "./cleanUrl.mjs";
9
9
  const promises = {},
10
10
  errors = {},
11
11
  loadedData = {};
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useRef","useActiveParams","useParams","resolveHref","useRouteNode","preloadingLoader","dynamicImport","weakKey","getLoaderPath","promises","errors","loadedData","useLoader","loader","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAElC,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5B,SAASC,YAAA,QAAoB;AAE7B,SAASC,gBAAA,QAAwB;AAEjC,SAASC,aAAA,QAAqB;AAC9B,SAASC,OAAA,QAAe;AACxB,SAASC,aAAA,QAAqB;AAE9B,MAAMC,QAAA,GAAsD,CAAC;EACvDC,MAAA,GAAS,CAAC;EACVC,UAAA,GAAkC,CAAC;AAElC,SAASC,UAGdC,MAAA,EAA8E;EAC9E,MAAMC,cAAA,GAAiBC,UAAA,CAAWC,mBAAA;EAGlC,IAAI,OAAOC,MAAA,GAAW,KACpB,OAAOC,UAAA,CACLL,MAAA,EACAC,cAAA,IAAkB;IAChBK,MAAA,EAAQlB,eAAA,CAAgB;EAC1B,CACF;EAGF,MAAMmB,QAAA,GAAW;IACXC,SAAA,GAAYjB,YAAA,CAAa;IACzBe,MAAA,GAASj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ACAjB,QAAA,CAASiB,WAAW,IAAIc,OAAA,CAAQ;IAClC;IAEA,MAAM/B,QAAA,CAASiB,WAAW;EAC5B;EAEA,OAAOM,WAAA,CAAYsB,OAAA;AACrB;AAEA,MAAMC,OAAA,GAAU,mBAAIC,GAAA,CAAI;EAClBC,OAAA,GAAU,mBAAID,GAAA,CAAI;AAExB,SAAStC,WAAWiB,GAAA,EAAUuB,KAAA,EAAa;EACzC,MAAMC,GAAA,IAAOxB,GAAA,GAAM5B,OAAA,CAAQ4B,GAAG,IAAI,MAAMyB,IAAA,CAAKC,SAAA,CAAUH,KAAK;EAE5D,IAAIvB,GAAA,IACE,CAACsB,OAAA,CAAQK,GAAA,CAAIH,GAAG,GAAG;IACrBF,OAAA,CAAQM,GAAA,CAAIJ,GAAA,EAAK,EAAI;IAErB,IAAIK,IAAA,GAAO7B,GAAA,CAAIuB,KAAK;IAChBM,IAAA,YAAgBC,OAAA,KAClBD,IAAA,GAAOA,IAAA,CACJ9B,IAAA,CAAMgC,KAAA,IAAU;MACfX,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKO,KAAK;IACxB,CAAC,EACA9B,KAAA,CAAOC,GAAA,IAAQ;MACdC,OAAA,CAAQC,KAAA,CAAM,0BAA0BF,GAAG,GAC3CkB,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAK,MAAS;IAC5B,CAAC,IAELJ,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKK,IAAI;EACvB;EAGF,MAAMV,OAAA,GAAUC,OAAA,CAAQO,GAAA,CAAIH,GAAG;EAE/B,IAAIL,OAAA,YAAmBW,OAAA,EACrB,MAAMX,OAAA;EAGR,OAAOA,OAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["useEffect","useRef","getLoaderPath","useActiveParams","useParams","resolveHref","useRouteNode","preloadingLoader","dynamicImport","weakKey","promises","errors","loadedData","useLoader","loader","preloadedProps","globalThis","__vxrnLoaderProps__","window","useAsyncFn","params","isNative","routeNode","pathName","pathname","route","replace","currentPath","__vxrntodopath","location","preloadedData","path","__vxrnLoaderData__","currentData","loaded","then","val","catch","err","console","error","getData","loaderJSUrl","response","nativeLoaderJSUrl","loaderJsCodeResp","fetch","ok","Error","status","loaderJsCode","text","result","eval","e","current","results","Map","started","props","key","JSON","stringify","get","set","next","Promise","final"],"sources":["../../src/useLoader.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,SAAA,EAAWC,MAAA,QAAc;AAClC,SAASC,aAAA,QAAqB;AAC9B,SAASC,eAAA,EAAiBC,SAAA,QAAiB;AAC3C,SAASC,WAAA,QAAmB;AAC5B,SAASC,YAAA,QAAoB;AAC7B,SAASC,gBAAA,QAAwB;AAEjC,SAASC,aAAA,QAAqB;AAC9B,SAASC,OAAA,QAAe;AAExB,MAAMC,QAAA,GAAsD,CAAC;EACvDC,MAAA,GAAS,CAAC;EACVC,UAAA,GAAkC,CAAC;AAElC,SAASC,UAGdC,MAAA,EAA8E;EAC9E,MAAMC,cAAA,GAAiBC,UAAA,CAAWC,mBAAA;EAGlC,IAAI,OAAOC,MAAA,GAAW,KACpB,OAAOC,UAAA,CACLL,MAAA,EACAC,cAAA,IAAkB;IAChBK,MAAA,EAAQjB,eAAA,CAAgB;EAC1B,CACF;EAGF,MAAMkB,QAAA,GAAW;IACXC,SAAA,GAAYhB,YAAA,CAAa;IACzBc,MAAA,GAAShB,SAAA,CAAU;IAInBmB,QAAA,GACJ,MAAMlB,WAAA,CAAY;MAAEmB,QAAA,EAAUF,SAAA,EAAWG,KAAA,IAAS;MAAIL;IAAO,CAAC,EAAEM,OAAA,CAAQ,UAAU,EAAE;IAEhFC,WAAA,IACHN,QAAA,GAAW,OAAOL,UAAA,CAAWY,cAAA;IAAA;IAAA;IAE7B,OAAOV,MAAA,GAAW,MAAcA,MAAA,CAAOW,QAAA,EAAUL,QAAA,IAAYD,QAAA,GAAW;IAGrEO,aAAA,GACJf,cAAA,EAAgBgB,IAAA,KAASJ,WAAA,GAAcX,UAA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AE5D,IAAIvB,GAAA,IACE,CAACsB,OAAA,CAAQK,GAAA,CAAIH,GAAG,GAAG;IACrBF,OAAA,CAAQM,GAAA,CAAIJ,GAAA,EAAK,EAAI;IAErB,IAAIK,IAAA,GAAO7B,GAAA,CAAIuB,KAAK;IAChBM,IAAA,YAAgBC,OAAA,KAClBD,IAAA,GAAOA,IAAA,CACJ9B,IAAA,CAAMgC,KAAA,IAAU;MACfX,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKO,KAAK;IACxB,CAAC,EACA9B,KAAA,CAAOC,GAAA,IAAQ;MACdC,OAAA,CAAQC,KAAA,CAAM,0BAA0BF,GAAG,GAC3CkB,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAK,MAAS;IAC5B,CAAC,IAELJ,OAAA,CAAQQ,GAAA,CAAIJ,GAAA,EAAKK,IAAI;EACvB;EAGF,MAAMV,OAAA,GAAUC,OAAA,CAAQO,GAAA,CAAIH,GAAG;EAE/B,IAAIL,OAAA,YAAmBW,OAAA,EACrB,MAAMX,OAAA;EAGR,OAAOA,OAAA;AACT","ignoreList":[]}
@@ -1,11 +1,11 @@
1
1
  import { useEffect, useRef } from "react";
2
+ import { getLoaderPath } from "./cleanUrl";
2
3
  import { useActiveParams, useParams } from "./hooks";
3
4
  import { resolveHref } from "./link/href";
4
5
  import { useRouteNode } from "./Route";
5
6
  import { preloadingLoader } from "./router/router";
6
7
  import { dynamicImport } from "./utils/dynamicImport";
7
8
  import { weakKey } from "./utils/weakKey";
8
- import { getLoaderPath } from "./cleanUrl";
9
9
  var promises = {}, errors = {}, loadedData = {};
10
10
  function useLoader(loader) {
11
11
  var _window_location, preloadedProps = globalThis.__vxrnLoaderProps__;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/useLoader.ts"],
4
- "mappings": "AACA,SAASA,WAAWC,cAAc;AAElC,SAASC,iBAAiBC,iBAAiB;AAC3C,SAASC,mBAA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,oBAAIC,IAAAA,GACdC,UAAU,oBAAID,IAAAA;AAEpB,SAAStC,WAAWiB,KAAUuB,OAAW;AACvC,MAAMC,OAAOxB,MAAM3B,QAAQ2B,GAAAA,IAAO,MAAMyB,KAAKC,UAAUH,KAAAA;AAEvD,MAAIvB,OACE,CAACsB,QAAQK,IAAIH,GAAAA,GAAM;AACrBF,YAAQM,IAAIJ,KAAK,EAAA;AAEjB,QAAIK,OAAO7B,IAAIuB,KAAAA;AACf,IAAIM,gBAAgBC,YAClBD,OAAOA,KACJ9B,KAAK,SAACgC,OAAAA;AACLX,cAAQQ,IAAIJ,KAAKO,KAAAA;IACnB,CAAA,EACC9B,MAAM,SAACC,KAAAA;AACNC,cAAQC,MAAM,0BAA0BF,GAAAA,GACxCkB,QAAQQ,IAAIJ,KAAK5B,MAAAA;IACnB,CAAA,IAEJwB,QAAQQ,IAAIJ,KAAKK,IAAAA;EACnB;AAGF,MAAMV,UAAUC,QAAQO,IAAIH,GAAAA;AAE5B,MAAIL,mBAAmBW;AACrB,UAAMX;AAGR,SAAOA;AACT;",
5
- "names": ["useEffect", "useRef", "useActiveParams", "useParams", "resolveHref", "useRouteNode", "preloadingLoader", "dynamicImport", "weakKey", "getLoaderPath", "promises", "errors", "loadedData", "useLoader", "loader", "window", "preloadedProps", "globalThis", "useAsyncFn", "params", "isNative", "process", "routeNode", "pathName", "pathname", "route", "replace", "currentPath", "location", "preloadedData", "path", "undefined", "currentData", "loaded", "then", "val", "catch", "err", "console", "error", "getData", "loaderJSUrl", "response", "nativeLoaderJSUrl", "loaderJsCodeResp", "fetch", "ok", "Error", "status", "loaderJsCode", "text", "result", "eval", "e", "current", "results", "Map", "started", "props", "key", "JSON", "stringify", "get", "set", "next", "Promise", "final"]
4
+ "mappings": "AACA,SAASA,WAAWC,cAAc;AAClC,SAASC,qBAAqB;AAC9B,SAASC,iBAAiBC,iBAAiB;AAC3C,SAASC,mBAAmB;AAC5B,SAASC,oBAAoB;AAC7B,SAASC,wBAAw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KAAUuB,OAAW;AACvC,MAAMC,OAAOxB,MAAM1B,QAAQ0B,GAAAA,IAAO,MAAMyB,KAAKC,UAAUH,KAAAA;AAEvD,MAAIvB,OACE,CAACsB,QAAQK,IAAIH,GAAAA,GAAM;AACrBF,YAAQM,IAAIJ,KAAK,EAAA;AAEjB,QAAIK,OAAO7B,IAAIuB,KAAAA;AACf,IAAIM,gBAAgBC,YAClBD,OAAOA,KACJ9B,KAAK,SAACgC,OAAAA;AACLX,cAAQQ,IAAIJ,KAAKO,KAAAA;IACnB,CAAA,EACC9B,MAAM,SAACC,KAAAA;AACNC,cAAQC,MAAM,0BAA0BF,GAAAA,GACxCkB,QAAQQ,IAAIJ,KAAK5B,MAAAA;IACnB,CAAA,IAEJwB,QAAQQ,IAAIJ,KAAKK,IAAAA;EACnB;AAGF,MAAMV,UAAUC,QAAQO,IAAIH,GAAAA;AAE5B,MAAIL,mBAAmBW;AACrB,UAAMX;AAGR,SAAOA;AACT;",
5
+ "names": ["useEffect", "useRef", "getLoaderPath", "useActiveParams", "useParams", "resolveHref", "useRouteNode", "preloadingLoader", "dynamicImport", "weakKey", "promises", "errors", "loadedData", "useLoader", "loader", "window", "preloadedProps", "globalThis", "useAsyncFn", "params", "isNative", "process", "routeNode", "pathName", "pathname", "route", "replace", "currentPath", "location", "preloadedData", "path", "undefined", "currentData", "loaded", "then", "val", "catch", "err", "console", "error", "getData", "loaderJSUrl", "response", "nativeLoaderJSUrl", "loaderJsCodeResp", "fetch", "ok", "Error", "status", "loaderJsCode", "text", "result", "eval", "e", "current", "results", "Map", "started", "props", "key", "JSON", "stringify", "get", "set", "next", "Promise", "final"]
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/vite/one.ts"],
4
- "mappings": "AAAA,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAe,eAAe;AAC7C,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,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C;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO;AACT;",
5
5
  "names": []
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","define","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAAeC,OAAA,QAAe;AAC7C,SAA0DC,kBAAA,QAA0B;AACpF,OAAOC,aAAA,MAAmB;AAC1B,SAASC,eAAA,EAAiBC,gBAAA,EAAkBC,gBAAA,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qB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CAAC,EACH;AACF;AAEA,IAAIO,UAAA,GAAuC;AAE3C,eAAeiF,kBAAkBC,OAAA,EAA6B;EAC5D,IAAI,CAAClF,UAAA,EAAY;IACf,IAAI,CAACkF,OAAA,EAAS,MAAM,IAAIC,KAAA,CAAM,yCAAyC;IACvE,MAAMC,kBAAA,CAAmBF,OAAO;EAClC;EACA,IAAI,CAAClF,UAAA,EACH,MAAM,IAAImF,KAAA,CAAM,4BAA4B;EAE9C,OAAOnF,UAAA;AACT;AAEA,eAAsBoF,mBAAmBF,OAAA,EAA4B;EAKnE,IAAI,EAJU,MAAMvG,kBAAA,CAAmB;IACrC0G,IAAA,EAAM;IACNH;EACF,CAAC,IAEC,MAAM,IAAIC,KAAA,CAAM,sBAAsBlF,OAAA,CAAQC,GAAA,CAAI,CAAC,kCAAkC;EAEvF,MAAMoF,YAAA,GAAeL,iBAAA,CAAkB;EACvC,IAAI,CAACK,YAAA,EACH,MAAM,IAAIH,KAAA,CAAM,yCAAyC;EAE3D,OAAOG,YAAA;AACT","ignoreList":[]}
1
+ {"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","requireResolve","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","loadEnv","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","process","cwd","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","devAndProdPlugins","Proxy","name","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","define","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ssr","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","root","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","ios","android","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","mode","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,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,QAAwB;AACpE,OAAO;AACP,SAASC,WAAA,QAAmB;AAC5B,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,cAAA,QAAsB;AAC/B,SAASC,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,OAAA,QAAe;AAExB,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,EAERR,OAAA,CAAQU,OAAA,CAAQC,GAAA,CAAI,CAAC,GAGtBH,OAAA,CAAQI,MAAA,EAAQf,cAAA,KAAmB,MAChCA,cAAA,CAAe,GAGtBQ,UAAA,CAAWQ,oBAAA,GAA0BL,OAAA;EAGrC,MAAM;MAAEM;IAAa,IAAIxB,eAAA,CAAgB,OAAO;IAC1CyB,WAAA,GAAcD,YAAA,CAAaE,OAAA;IAC3BC,eAAA,GAAkB,IAAIC,MAAA;IAAA;IAAA;IAG1B,GAAGH,WAAA,CAAYI,GAAA,CAAKC,EAAA,IAAOA,EAAA,CAAGC,OAAA,CAAQ,uB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