one 1.1.302 → 1.1.303
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cli/run.js +1 -0
- package/dist/cjs/cli/run.js.map +1 -1
- package/dist/cjs/cli/run.native.js +1 -0
- package/dist/cjs/cli/run.native.js.map +2 -2
- package/dist/cjs/cli.js +22 -4
- package/dist/cjs/cli.js.map +2 -2
- package/dist/cjs/cli.native.js +18 -4
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/useLoader.js +1 -1
- package/dist/cjs/useLoader.js.map +1 -1
- package/dist/cjs/useLoader.native.js +1 -1
- package/dist/cjs/useLoader.native.js.map +1 -1
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/esm/cli/run.js +1 -0
- package/dist/esm/cli/run.js.map +1 -1
- package/dist/esm/cli/run.mjs +1 -0
- package/dist/esm/cli/run.mjs.map +1 -1
- package/dist/esm/cli/run.native.js +1 -0
- package/dist/esm/cli/run.native.js.map +2 -2
- package/dist/esm/cli.js +22 -3
- package/dist/esm/cli.js.map +2 -2
- package/dist/esm/cli.mjs +25 -3
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +18 -3
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/useLoader.js +1 -1
- package/dist/esm/useLoader.js.map +1 -1
- package/dist/esm/useLoader.mjs +1 -1
- package/dist/esm/useLoader.mjs.map +1 -1
- package/dist/esm/useLoader.native.js +1 -1
- package/dist/esm/useLoader.native.js.map +2 -2
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +7 -6
- package/src/cli/run.ts +4 -0
- package/src/cli.ts +28 -2
- package/src/useLoader.ts +1 -3
- package/src/vite/one.ts +1 -1
- package/types/cli/run.d.ts +1 -0
- package/types/cli/run.d.ts.map +1 -1
- package/types/useLoader.d.ts.map +1 -1
package/dist/cjs/cli/run.js
CHANGED
@@ -29,6 +29,7 @@ var import_virtualEntryPlugin = require("../vite/virtualEntryPlugin"), import_la
|
|
29
29
|
async function run(args) {
|
30
30
|
(0, import_label_process.labelProcess)("dev");
|
31
31
|
const { dev } = await import("vxrn"), { start, stop } = await dev({
|
32
|
+
mode: args.mode,
|
32
33
|
clean: args.clean,
|
33
34
|
root: process.cwd(),
|
34
35
|
server: {
|
package/dist/cjs/cli/run.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/cli/run.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAqC,uCACrC,uBAA6B;AAE7B,eAAsB,IAAI,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAqC,uCACrC,uBAA6B;AAE7B,eAAsB,IAAI,MAMvB;AACD,yCAAa,KAAK;AAElB,QAAM,EAAE,IAAI,IAAI,MAAM,OAAO,MAAM,GAE7B,EAAE,OAAO,KAAK,IAAI,MAAM,IAAI;AAAA,IAChC,MAAM,KAAK;AAAA,IACX,OAAO,KAAK;AAAA,IACZ,MAAM,QAAQ,IAAI;AAAA,IAClB,QAAQ;AAAA,MACN,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,MAAM,KAAK,OAAO,CAAC,KAAK,OAAO;AAAA,IACjC;AAAA,IACA,SAAS;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,EACF,CAAC,GAEK,EAAE,aAAa,IAAI,MAAM,MAAM;AAErC,UAAQ,GAAG,cAAc,MAAM;AAC7B,SAAK;AAAA,EACP,CAAC,GAED,QAAQ,GAAG,UAAU,MAAM;AACzB,SAAK;AAAA,EACP,CAAC,GAED,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,YAAQ,MAAM,KAAK,WAAW,GAAG;AAAA,EACnC,CAAC,GAED,MAAM;AACR;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -30,6 +30,7 @@ var import_virtualEntryPlugin = require("../vite/virtualEntryPlugin"), import_la
|
|
30
30
|
async function run(args) {
|
31
31
|
(0, import_label_process.labelProcess)("dev");
|
32
32
|
var { dev } = await import("vxrn"), { start, stop } = await dev({
|
33
|
+
mode: args.mode,
|
33
34
|
clean: args.clean,
|
34
35
|
root: process.cwd(),
|
35
36
|
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;;;;;gCAAqC,uCACrC,uBAA6B;AAE7B,eAAsBA,IAAIC,
|
5
|
-
"names": ["run", "args", "labelProcess", "dev", "start", "stop", "clean", "root", "process", "cwd", "server", "https", "host", "port", "undefined", "entries", "native", "virtualEntryIdNative", "closePromise", "on", "err", "console", "error", "message"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;gCAAqC,uCACrC,uBAA6B;AAE7B,eAAsBA,IAAIC,MAMzB;AACCC,yCAAa,KAAA;AAEb,MAAM,EAAEC,IAAG,IAAK,MAAM,OAAO,MAAA,GAEvB,EAAEC,OAAOC,KAAI,IAAK,MAAMF,IAAI;IAChCG,MAAML,KAAKK;IACXC,OAAON,KAAKM;IACZC,MAAMC,QAAQC,IAAG;IACjBC,QAAQ;MACNC,OAAOX,KAAKW;MACZC,MAAMZ,KAAKY;MACXC,MAAMb,KAAKa,OAAO,CAACb,KAAKa,OAAOC;IACjC;IACAC,SAAS;MACPC,QAAQC;IACV;EACF,CAAA,GAEM,EAAEC,aAAY,IAAK,MAAMf,MAAAA;AAE/BK,UAAQW,GAAG,cAAc,WAAA;AACvBf,SAAAA;EACF,CAAA,GAEAI,QAAQW,GAAG,UAAU,WAAA;AACnBf,SAAAA;EACF,CAAA,GAEAI,QAAQW,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,YAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;EAChC,CAAA,GAEA,MAAMF;AACR;",
|
5
|
+
"names": ["run", "args", "labelProcess", "dev", "start", "stop", "mode", "clean", "root", "process", "cwd", "server", "https", "host", "port", "undefined", "entries", "native", "virtualEntryIdNative", "closePromise", "on", "err", "console", "error", "message"]
|
6
6
|
}
|
package/dist/cjs/cli.js
CHANGED
@@ -17,7 +17,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
17
17
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
18
18
|
mod
|
19
19
|
));
|
20
|
-
var import_citty = require("citty"), import_loadEnv = require("./vite/loadEnv"), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
20
|
+
var import_citty = require("citty"), import_picocolors = __toESM(require("picocolors"), 1), import_loadEnv = require("./vite/loadEnv"), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
21
21
|
const import_meta = {};
|
22
22
|
function getPackageVersion() {
|
23
23
|
let dirname;
|
@@ -27,7 +27,15 @@ function getPackageVersion() {
|
|
27
27
|
}
|
28
28
|
const version = getPackageVersion();
|
29
29
|
(0, import_loadEnv.loadEnv)(process.cwd());
|
30
|
-
|
30
|
+
import_node_path.default.sep !== "/" && console.warn(
|
31
|
+
import_picocolors.default.bgYellow("WARNING: UNSUPPORTED OS") + import_picocolors.default.yellow(
|
32
|
+
" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."
|
33
|
+
)
|
34
|
+
);
|
35
|
+
const modes = {
|
36
|
+
development: "development",
|
37
|
+
production: "production"
|
38
|
+
}, dev = (0, import_citty.defineCommand)({
|
31
39
|
meta: {
|
32
40
|
name: "dev",
|
33
41
|
version,
|
@@ -45,11 +53,21 @@ const dev = (0, import_citty.defineCommand)({
|
|
45
53
|
},
|
46
54
|
https: {
|
47
55
|
type: "boolean"
|
56
|
+
},
|
57
|
+
mode: {
|
58
|
+
type: "string",
|
59
|
+
description: 'If set to "production" you can run the development server but serve the production bundle'
|
48
60
|
}
|
49
61
|
},
|
50
|
-
async run({ args }) {
|
62
|
+
async run({ args: { clean: clean2, host, https, mode, port } }) {
|
51
63
|
const { run } = await import("./cli/run");
|
52
|
-
await run(
|
64
|
+
await run({
|
65
|
+
clean: clean2,
|
66
|
+
host,
|
67
|
+
https,
|
68
|
+
mode: modes[mode],
|
69
|
+
port
|
70
|
+
});
|
53
71
|
}
|
54
72
|
}), buildCommand = (0, import_citty.defineCommand)({
|
55
73
|
meta: {
|
package/dist/cjs/cli.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/cli.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;
|
5
|
-
"names": ["path"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAL9B;AAOA,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,iBAAAA,QAAK,YAAQ,+BAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,iBAAAA,QAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEjE,SADoB,KAAK,UAAM,6BAAa,aAAa,OAAO,CAAC,EAC9C;AACrB;AAEA,MAAM,UAAU,kBAAkB;AAAA,IAE7B,wBAAQ,QAAQ,IAAI,CAAC;AAEtB,iBAAAA,QAAK,QAAQ,OACf,QAAQ;AAAA,EACN,kB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ode, target) => (target = mod != null ? __create(__ge
|
|
18
18
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
19
19
|
mod
|
20
20
|
));
|
21
|
-
var import_citty = require("citty"), import_loadEnv = require("./vite/loadEnv"), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
21
|
+
var import_citty = require("citty"), import_picocolors = __toESM(require("picocolors"), 1), import_loadEnv = require("./vite/loadEnv"), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
22
22
|
const import_meta = {};
|
23
23
|
function getPackageVersion() {
|
24
24
|
var dirname;
|
@@ -28,7 +28,11 @@ function getPackageVersion() {
|
|
28
28
|
}
|
29
29
|
var version = getPackageVersion();
|
30
30
|
(0, import_loadEnv.loadEnv)(process.cwd());
|
31
|
-
|
31
|
+
import_node_path.default.sep !== "/" && console.warn(import_picocolors.default.bgYellow("WARNING: UNSUPPORTED OS") + import_picocolors.default.yellow(" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."));
|
32
|
+
var modes = {
|
33
|
+
development: "development",
|
34
|
+
production: "production"
|
35
|
+
}, dev = (0, import_citty.defineCommand)({
|
32
36
|
meta: {
|
33
37
|
name: "dev",
|
34
38
|
version,
|
@@ -46,11 +50,21 @@ var dev = (0, import_citty.defineCommand)({
|
|
46
50
|
},
|
47
51
|
https: {
|
48
52
|
type: "boolean"
|
53
|
+
},
|
54
|
+
mode: {
|
55
|
+
type: "string",
|
56
|
+
description: 'If set to "production" you can run the development server but serve the production bundle'
|
49
57
|
}
|
50
58
|
},
|
51
59
|
async run(param) {
|
52
|
-
var { args } = param, { run } = await import("./cli/run");
|
53
|
-
await run(
|
60
|
+
var { args: { clean: clean2, host, https, mode, port } } = param, { run } = await import("./cli/run");
|
61
|
+
await run({
|
62
|
+
clean: clean2,
|
63
|
+
host,
|
64
|
+
https,
|
65
|
+
mode: modes[mode],
|
66
|
+
port
|
67
|
+
});
|
54
68
|
}
|
55
69
|
}), buildCommand = (0, import_citty.defineCommand)({
|
56
70
|
meta: {
|
@@ -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,mBAAuC,kBACvC,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;
|
5
|
-
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "dev", "defineCommand", "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", "subCommands", "subMain", "main", "runMain", "cliMain"]
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAAuC,kBACvC,oBAAmB,mCACnB,iBAAwB,2BACxB,iBAA6B,oBAC7B,mBAAiB,kCACjB,kBAA8B;AAL9B;AAOA,SAASA,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUE,iBAAAA,QAAKF,YAAQG,+BAAc,YAAYC,GAAG,CAAA;AAEtD,MAAMC,cAAcH,iBAAAA,QAAKI,KAAKN,SAAS,MAAM,MAAM,cAAA,GAC7CO,cAAcC,KAAKC,UAAMC,6BAAaL,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYI;AACrB;AAEA,IAAMA,UAAUZ,kBAAAA;IAEXa,wBAAQC,QAAQC,IAAG,CAAA;AAEpBZ,iBAAAA,QAAKa,QAAQ,OACfC,QAAQC,KACNC,kBAAAA,QAAOC,SAAS,yBAAA,IACdD,kBAAAA,QAAOE,OACL,kHAAA,CAAA;AAKR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OJ;AACT,GAGMY,cAAU9B,4BAAc;EAC5BC,MAAM;IACJC,MAAM;IACNhB;IACAiB,aAAa;EACf;EACA0B;AACF,CAAA,GAEME,WAAO/B,4BAAc;EACzBC,MAAM;IACJC,MAAM;IACNhB;IACAiB,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;AAE1B8B,gCAAQF,OAAAA;AACR;IACF;AAEA,QAAM,EAAEG,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ7B,IAAAA;EAChB;AACF,CAAA;IAEA4B,sBAAQD,IAAAA;",
|
5
|
+
"names": ["getPackageVersion", "dirname", "__dirname", "path", "fileURLToPath", "url", "packagePath", "join", "packageJson", "JSON", "parse", "readFileSync", "version", "loadEnv", "process", "cwd", "sep", "console", "warn", "colors", "bgYellow", "yellow", "modes", "development", "production", "dev", "defineCommand", "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", "runMain", "cliMain"]
|
6
6
|
}
|
package/dist/cjs/useLoader.js
CHANGED
@@ -17,7 +17,7 @@ __export(useLoader_exports, {
|
|
17
17
|
useLoader: () => useLoader
|
18
18
|
});
|
19
19
|
module.exports = __toCommonJS(useLoader_exports);
|
20
|
-
var import_react = require("react"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey")
|
20
|
+
var import_react = require("react"), import_cleanUrl = require("./cleanUrl"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey");
|
21
21
|
const promises = {}, errors = {}, loadedData = {};
|
22
22
|
function useLoader(loader) {
|
23
23
|
const preloadedProps = globalThis.__vxrnLoaderProps__;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/useLoader.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkC,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAAkC,kBAClC,kBAA8B,uBAC9B,eAA2C,oBAC3C,cAA4B,wBAC5B,eAA6B,oBAC7B,gBAAiC,4BAEjC,uBAA8B,kCAC9B,iBAAwB;AAExB,MAAM,WAAsD,CAAC,GACvD,SAAS,CAAC,GACV,aAAkC,CAAC;AAElC,SAAS,UAGd,QAA8E;AAC9E,QAAM,iBAAiB,WAAW;AAGlC,MAAI,OAAO,SAAW;AACpB,WAAO;AAAA,MACL;AAAA,MACA,kBAAkB;AAAA,QAChB,YAAQ,8BAAgB;AAAA,MAC1B;AAAA,IACF;AAGF,QAAM,WAAW,IACX,gBAAY,2BAAa,GACzB,aAAS,wBAAU,GAInB,WACJ,UAAM,yBAAY,EAAE,UAAU,WAAW,SAAS,IAAI,OAAO,CAAC,EAAE,QAAQ,UAAU,EAAE,GAEhF,eACH,WAAW,OAAO,WAAW;AAAA;AAAA,GAE7B,OAAO,SAAW,MAAc,OAAO,UAAU,YAAY,WAAW,MAGrE,gBACJ,gBAAgB,SAAS,cAAc,WAAW,qBAAwB,QAEtE,kBAAc,qBAAO,aAAa;AAUxC,UARA,wBAAU,MAAM;AACd,IAAI,kBACF,WAAW,WAAW,IAAI,eAC1B,OAAO,WAAW;AAAA,EAGtB,GAAG,CAAC,aAAa,CAAC,GAEd,OAAO,WAAW;AACpB,UAAM,OAAO,WAAW;AAG1B,QAAM,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,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,UAAM,wBAAQ,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
|
}
|
@@ -18,7 +18,7 @@ __export(useLoader_exports, {
|
|
18
18
|
useLoader: () => useLoader
|
19
19
|
});
|
20
20
|
module.exports = __toCommonJS(useLoader_exports);
|
21
|
-
var import_react = require("react"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey"),
|
21
|
+
var import_react = require("react"), import_cleanUrl = require("./cleanUrl"), import_hooks = require("./hooks"), import_href = require("./link/href"), import_Route = require("./Route"), import_router = require("./router/router"), import_dynamicImport = require("./utils/dynamicImport"), import_weakKey = require("./utils/weakKey"), promises = {}, errors = {}, loadedData = {};
|
22
22
|
function useLoader(loader) {
|
23
23
|
var _window_location, preloadedProps = globalThis.__vxrnLoaderProps__;
|
24
24
|
if (typeof window > "u")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/useLoader.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AACA,mBAAkC,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AACA,mBAAkC,kBAClC,kBAA8B,uBAC9B,eAA2C,oBAC3C,cAA4B,wBAC5B,eAA6B,oBAC7B,gBAAiC,4BAEjC,uBAA8B,kCAC9B,iBAAwB,4BAElBA,WAAsD,CAAC,GACvDC,SAAS,CAAC,GACVC,aAAkC,CAAC;AAElC,SAASC,UAGdC,QAAc;MAyBqBC,kBAxB7BC,iBAAiBC,WAAW;AAGlC,MAAI,OAAOF,SAAW;AACpB,WAAOG,WACLJ,QACAE,kBAAkB;MAChBG,YAAQC,8BAAAA;IACV,CAAA;AAIJ,MAAMC,WAAWC,IACXC,gBAAYC,2BAAAA,GACZL,aAASM,wBAAAA,GAITC,WACJ,UAAMC,yBAAY;IAAEC,WAAUL,aAAAA,OAAAA,SAAAA,UAAWM,UAAS;IAAIV;EAAO,CAAA,EAAGW,QAAQ,UAAU,EAAA,GAE9EC,eACHV,WAAW,OAAOJ,WAAW;;GAE7B,OAAOF,SAAW,QAAcA,mBAAAA,OAAOiB,cAAQ,QAAfjB,qBAAAA,SAAAA,SAAAA,iBAAiBa,aAAYF,WAAW,MAGrEO,iBACJjB,kBAAAA,OAAAA,SAAAA,eAAgBkB,UAASH,cAAcd,WAAW,qBAAwBkB,QAEtEC,kBAAcC,qBAAOJ,aAAAA;AAU3B,UARAK;IAAU,WAAA;AACR,MAAIL,kBACFrB,WAAWmB,WAAAA,IAAeE,eAC1B,OAAOhB,WAAW;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,WAAA;2BAAO,CAAC;;gBAAG;cAC9B;YACF;AAGA,mBAAO,UAAMgD,oCAAcd,WAAAA;UAC7B,EAAA;AAEApC,4BAAWmB,WAAAA,IAAemB,SAASpC,OAAM,GAClCF,WAAWmB,WAAAA;QACpB,SAASa,KAAK;AACZC,yBAAQC,MAAM,yBAAyBF,GAAAA,EAAK,GAC5CjC,OAAOoB,WAAAA,IAAea,KACtB,OAAOlC,SAASqB,WAAAA,GACT;QACT;MACF;AACArB,eAASqB,WAAAA,IAAegB,QAAAA;IAC1B;AAEA,UAAMrC,SAASqB,WAAAA;EACjB;AAEA,SAAOK,YAAY2B;AACrB;AAEA,IAAMC,UAAU,oBAAIC,IAAAA,GACdC,UAAU,oBAAID,IAAAA;AAEpB,SAAS/C,WAAWwB,KAAUyB,OAAW;AACvC,MAAMC,OAAO1B,UAAM2B,wBAAQ3B,GAAAA,IAAO,MAAM4B,KAAKC,UAAUJ,KAAAA;AAEvD,MAAIzB,OACE,CAACwB,QAAQM,IAAIJ,GAAAA,GAAM;AACrBF,YAAQO,IAAIL,KAAK,EAAA;AAEjB,QAAIM,OAAOhC,IAAIyB,KAAAA;AACf,IAAIO,gBAAgBC,YAClBD,OAAOA,KACJjC,KAAK,SAACmC,OAAAA;AACLZ,cAAQS,IAAIL,KAAKQ,KAAAA;IACnB,CAAA,EACCjC,MAAM,SAACC,KAAAA;AACNC,cAAQC,MAAM,0BAA0BF,GAAAA,GACxCoB,QAAQS,IAAIL,KAAKjC,MAAAA;IACnB,CAAA,IAEJ6B,QAAQS,IAAIL,KAAKM,IAAAA;EACnB;AAGF,MAAMX,UAAUC,QAAQQ,IAAIJ,GAAAA;AAE5B,MAAIL,mBAAmBY;AACrB,UAAMZ;AAGR,SAAOA;AACT;",
|
5
5
|
"names": ["promises", "errors", "loadedData", "useLoader", "loader", "window", "preloadedProps", "globalThis", "useAsyncFn", "params", "useActiveParams", "isNative", "process", "routeNode", "useRouteNode", "useParams", "pathName", "resolveHref", "pathname", "route", "replace", "currentPath", "location", "preloadedData", "path", "undefined", "currentData", "useRef", "useEffect", "loaded", "preloadingLoader", "then", "val", "catch", "err", "console", "error", "getData", "loaderJSUrl", "getLoaderPath", "response", "nativeLoaderJSUrl", "loaderJsCodeResp", "fetch", "ok", "Error", "status", "loaderJsCode", "text", "result", "eval", "e", "dynamicImport", "current", "results", "Map", "started", "props", "key", "weakKey", "JSON", "stringify", "get", "set", "next", "Promise", "final"]
|
6
6
|
}
|
package/dist/cjs/vite/one.js.map
CHANGED
@@ -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,yBAAmB,oCACnB,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAAoE,iBACpE,0BAAO,gCACP,qBAA4B,iCAC5B,wBAA+B,oCAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,iBAAwB,sBAExB,4BAAmD,iCACnD,0BAAiC;AAEjC,mBAAAA,QAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,aAER,wBAAQ,QAAQ,IAAI,CAAC,GAGtB,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,G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C;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
|
}
|
@@ -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;;;;;;yBAAmB,oCACnB,
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;yBAAmB,oCACnB,mBAAuC,kCACvC,cAAoF,iBACpF,6BAA0B,4CAC1B,cAAoE,iBACpE,0BAAO,gCACP,qBAA4B,iCAC5B,wBAA+B,oCAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,wBAA+B,6BAC/B,+BAAsC,oCACtC,gCAAuC,qCACvC,iBAAwB,sBAExB,4BAAmD,iCACnD,0BAAiC;AAEjCA,mBAAAA,QAAOC,gBAAgB,GAAA;AAGvBC,WAAWC,wBAAwB;AAE5B,SAASC,MAAAA;MAA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,cAAI;AACF,gBAAMgF,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,IAAIpG,aAAuC;AAE3C,eAAeqG,kBAAkBC,SAA2B;AAC1D,MAAI,CAACtG,YAAY;AACf,QAAI,CAACsG,QAAS,OAAM,IAAIC,MAAM,yCAAyC;AACvE,UAAMC,mBAAmBF,OAAAA;EAC3B;AACA,MAAI,CAACtG;AACH,UAAM,IAAIuG,MAAM,4BAA4B;AAE9C,SAAOvG;AACT;AAEA,eAAsBwG,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,UAAMC,gCAAmB;IACrCC,MAAM;IACNL;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBrG,QAAQC,IAAG,CAAA,kCAAoC;AAEvF,MAAMyG,eAAeP,kBAAAA;AACrB,MAAI,CAACO;AACH,UAAM,IAAIL,MAAM,yCAAyC;AAE3D,SAAOK;AACT;",
|
5
5
|
"names": ["events", "setMaxListeners", "globalThis", "__vxrnEnableNativeEnv", "one", "options", "oneOptions", "loadEnv", "process", "cwd", "config", "ensureTSConfig", "optimizeDeps", "getOptimizeDeps", "optimizeIds", "include", "optimizeIdRegex", "RegExp", "map", "id", "replace", "join", "tsConfigPathsPlugin", "vxrnOptions", "getOptionsFilled", "devAndProdPlugins", "Proxy", "name", "configIncoming", "pathsConfig", "tsConfigPaths", "plugins", "flat", "some", "p", "tsconfigPaths", "configResolved", "resolveId", "get", "target", "key", "thisArg", "Reflect", "enforce", "resolve", "alias", "tslib", "requireResolve", "define", "web", "defaultRenderMode", "JSON", "stringify", "setupFile", "env", "NODE_ENV", "server", "url", "environments", "client", "ssr", "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", "sharedNativeConfig", "react", "ios", "android", "applyToEnvironment", "environment", "isWebEnvironment", "importer", "shouldOptimize", "test", "absolutePath", "dirname", "webPath", "directoryPath", "existsAsync", "err", "console", "warn", "vitePluginSsrCss", "entries", "virtualEntryId", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "loadConfigFromFile", "mode", "foundOptions"]
|
6
6
|
}
|
package/dist/esm/cli/run.js
CHANGED
package/dist/esm/cli/run.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/cli/run.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAE7B,eAAsB,IAAI,
|
4
|
+
"mappings": "AAAA,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAE7B,eAAsB,IAAI,MAMvB;AACD,eAAa,KAAK;AAElB,QAAM,EAAE,IAAI,IAAI,MAAM,OAAO,MAAM,GAE7B,EAAE,OAAO,KAAK,IAAI,MAAM,IAAI;AAAA,IAChC,MAAM,KAAK;AAAA,IACX,OAAO,KAAK;AAAA,IACZ,MAAM,QAAQ,IAAI;AAAA,IAClB,QAAQ;AAAA,MACN,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,MAAM,KAAK,OAAO,CAAC,KAAK,OAAO;AAAA,IACjC;AAAA,IACA,SAAS;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,EACF,CAAC,GAEK,EAAE,aAAa,IAAI,MAAM,MAAM;AAErC,UAAQ,GAAG,cAAc,MAAM;AAC7B,SAAK;AAAA,EACP,CAAC,GAED,QAAQ,GAAG,UAAU,MAAM;AACzB,SAAK;AAAA,EACP,CAAC,GAED,QAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,YAAQ,MAAM,KAAK,WAAW,GAAG;AAAA,EACnC,CAAC,GAED,MAAM;AACR;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/cli/run.mjs
CHANGED
package/dist/esm/cli/run.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["virtualEntryIdNative","labelProcess","run","args","dev","start","stop","clean","root","process","cwd","server","https","host","port","entries","native","closePromise","on","err","console","error","message"],"sources":["../../../src/cli/run.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AACrC,SAASC,YAAA,QAAoB;AAE7B,eAAsBC,IAAIC,IAAA,
|
1
|
+
{"version":3,"names":["virtualEntryIdNative","labelProcess","run","args","dev","start","stop","mode","clean","root","process","cwd","server","https","host","port","entries","native","closePromise","on","err","console","error","message"],"sources":["../../../src/cli/run.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AACrC,SAASC,YAAA,QAAoB;AAE7B,eAAsBC,IAAIC,IAAA,EAMvB;EACDF,YAAA,CAAa,KAAK;EAElB,MAAM;MAAEG;IAAI,IAAI,MAAM,OAAO,MAAM;IAE7B;MAAEC,KAAA;MAAOC;IAAK,IAAI,MAAMF,GAAA,CAAI;MAChCG,IAAA,EAAMJ,IAAA,CAAKI,IAAA;MACXC,KAAA,EAAOL,IAAA,CAAKK,KAAA;MACZC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;MAClBC,MAAA,EAAQ;QACNC,KAAA,EAAOV,IAAA,CAAKU,KAAA;QACZC,IAAA,EAAMX,IAAA,CAAKW,IAAA;QACXC,IAAA,EAAMZ,IAAA,CAAKY,IAAA,GAAO,CAACZ,IAAA,CAAKY,IAAA,GAAO;MACjC;MACAC,OAAA,EAAS;QACPC,MAAA,EAAQjB;MACV;IACF,CAAC;IAEK;MAAEkB;IAAa,IAAI,MAAMb,KAAA,CAAM;EAErCK,OAAA,CAAQS,EAAA,CAAG,cAAc,MAAM;IAC7Bb,IAAA,CAAK;EACP,CAAC,GAEDI,OAAA,CAAQS,EAAA,CAAG,UAAU,MAAM;IACzBb,IAAA,CAAK;EACP,CAAC,GAEDI,OAAA,CAAQS,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;IACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;EACnC,CAAC,GAED,MAAMF,YAAA;AACR","ignoreList":[]}
|
@@ -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,
|
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
|
-
|
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(
|
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: {
|
package/dist/esm/cli.js.map
CHANGED
@@ -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;
|
5
|
-
"names": []
|
4
|
+
"mappings": "AAAA,SAAS,eAAe,eAAe;AACvC,OAAO,YAAY;AACnB,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;AAEtB,KAAK,QAAQ,OACf,QAAQ;AAAA,EACN,OAAO,SAAS,yBAAyB,IACvC,OAAO;AAAA,IACL;AAAA,EACF;AACJ;AAGF,MAAM,QAA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BAAkB;AAC/C,UAAM,IAAI,IAAI;AAAA,EAChB;AACF,CAAC,GAEK,QAAQ,cAAc;AAAA,EAC1B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,MAAM,CAAC;AAAA,EACP,MAAM,MAAM;AACV,UAAM,EAAE,OAAO,UAAU,IAAI,MAAM,OAAO,MAAM;AAChD,UAAM,UAAU;AAAA,MACd,MAAM,QAAQ,IAAI;AAAA,IACpB,CAAC;AAAA,EACH;AACF,CAAC,GAEK,cAAc;AAAA,EAClB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,WAAW;AAAA,EACX,eAAe;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
|
-
|
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(
|
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({
|
package/dist/esm/cli.mjs.map
CHANGED
@@ -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","subCommands","subMain","main","cliMain"],"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;
|
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,I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ACT;EAGMW,OAAA,GAAUzD,aAAA,CAAc;IAC5BW,IAAA,EAAM;MACJkB,IAAA,EAAM;MACNZ,OAAA;MACAa,WAAA,EAAa;IACf;IACA0B;EACF,CAAC;EAEKE,IAAA,GAAO1D,aAAA,CAAc;IACzBW,IAAA,EAAM;MACJkB,IAAA,EAAM;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":[]}
|
package/dist/esm/cli.native.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,11 @@ function getPackageVersion() {
|
|
11
12
|
}
|
12
13
|
var version = getPackageVersion();
|
13
14
|
loadEnv(process.cwd());
|
14
|
-
|
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(
|
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: {
|
@@ -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,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;
|
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", "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A,IAAIP,IAAAA;EACZ;AACF,CAAA,GAEMsB,aAAarD,cAAc;EAC/B4B,MAAM;IACJC,MAAM;IACNb;EACF;EACAe,MAAM,CAAC;EACP,MAAMO,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN,OACF,EAAEO,IAAG,IAAK,MAAM,OAAO,kBAAA;AAC7B,UAAMA,IAAIP,IAAAA;EACZ;AACF,CAAA,GAEMC,QAAQhC,cAAc;EAC1B4B,MAAM;IACJC,MAAM;IACNb,SAAS;IACTc,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMO,MAAAA;AACJ,QAAM,EAAEN,OAAOsB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAMtC,QAAQC,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEMsC,cAAc;EAClB7B;EACAK;EACAW,OAAOJ;EACPY;EACA,WAAWC;EACX,eAAeC;EACfJ,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
|
}
|
package/dist/esm/useLoader.js
CHANGED
@@ -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 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/useLoader.ts"],
|
4
|
-
"mappings": "AACA,SAAS,WAAW,cAAc;
|
4
|
+
"mappings": "AACA,SAAS,WAAW,cAAc;AAClC,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB,iBAAiB;AAC3C,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AAEjC,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AAExB,MAAM,WAAsD,CAAC,GACvD,SAAS,CAAC,GACV,aAAkC,CAAC;AAElC,SAAS,UAGd,QAA8E;AAC9E,QAAM,iBAAiB,WAAW;AAGlC,MAAI,OAAO,SAAW;AACpB,WAAO;AAAA,MACL;AAAA,MACA,kBAAkB;AAAA,QAChB,QAAQ,gBAAgB;AAAA,MAC1B;AAAA,IACF;AAGF,QAAM,WAAW,IACX,YAA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B,MAAI,mBAAmB;AACrB,UAAM;AAGR,SAAO;AACT;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/useLoader.mjs
CHANGED
@@ -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","
|
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,SA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IJ,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;
|
5
|
-
"names": ["useEffect", "useRef", "useActiveParams", "useParams", "resolveHref", "useRouteNode", "preloadingLoader", "dynamicImport", "weakKey", "
|
4
|
+
"mappings": "AACA,SAASA,WAAWC,cAAc;AAClC,SAASC,qBAAqB;AAC9B,SAASC,iBAAiBC,iBAAiB;AAC3C,SAASC,mBAAmB;AAC5B,SAASC,oBAAoB;AAC7B,SAASC,wBAAwB;AAEjC,SAASC,qBAAqB;AAC9B,SAASC,eAAe;AAExB,IAAMC,WAAsD,CAAC,GACvDC,SAAS,CAAC,GACVC,aAAkC,CAAC;AAElC,SAASC,UAGdC,QAAc;MAyBqBC,kBAxB7BC,iBAAiBC,WAAW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AAIJ,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
|
}
|
package/dist/esm/vite/one.js.map
CHANGED
@@ -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,
|
4
|
+
"mappings": "AAAA,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,wBAAwB;AACpE,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,sBA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sconfigPaths","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,
|
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;IAC1Cy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OrF;AACT;AAEA,eAAsBsF,mBAAmBF,SAA0B;AACjE,MAAMG,QAAQ,MAAM5G,mBAAmB;IACrC6G,MAAM;IACNJ;EACF,CAAA;AACA,MAAI,CAACG;AACH,UAAM,IAAIF,MAAM,sBAAsBpF,QAAQC,IAAG,CAAA,kCAAoC;AAEvF,MAAMuF,eAAeN,kBAAAA;AACrB,MAAI,CAACM;AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
|
5
5
|
"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", "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", "relativePath", "relative", "root", "rootDir", "split", "sep", "acceptedHmrExports", "Set", "__vxrnAddNativePlugins", "__vxrnAddWebPluginsProd", "deps", "app", "sharedNativeConfig", "react", "ios", "android", "applyToEnvironment", "environment", "importer", "shouldOptimize", "test", "absolutePath", "webPath", "directoryPath", "err", "console", "warn", "entries", "getUserOneOptions", "command", "Error", "loadUserOneOptions", "found", "mode", "foundOptions"]
|
6
6
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.303",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -89,13 +89,13 @@
|
|
89
89
|
"@react-navigation/native-stack": "~6.9.13",
|
90
90
|
"@react-navigation/routers": "~6.1.9",
|
91
91
|
"@ungap/structured-clone": "^1.2.0",
|
92
|
-
"@vxrn/tslib-lite": "1.1.
|
93
|
-
"@vxrn/universal-color-scheme": "1.1.
|
94
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
92
|
+
"@vxrn/tslib-lite": "1.1.303",
|
93
|
+
"@vxrn/universal-color-scheme": "1.1.303",
|
94
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.303",
|
95
95
|
"babel-dead-code-elimination": "^1.0.6",
|
96
96
|
"citty": "^0.1.6",
|
97
97
|
"core-js": "^3.38.1",
|
98
|
-
"create-vxrn": "1.1.
|
98
|
+
"create-vxrn": "1.1.303",
|
99
99
|
"dotenv": "^16.4.5",
|
100
100
|
"escape-string-regexp": "^5.0.0",
|
101
101
|
"expo-linking": "~6.3.1",
|
@@ -108,6 +108,7 @@
|
|
108
108
|
"micromatch": "^4.0.7",
|
109
109
|
"nanoid": "^3.3.7",
|
110
110
|
"perfect-debounce": "^1.0.0",
|
111
|
+
"picocolors": "^1.0.0",
|
111
112
|
"react": "^18.2.0 || ^19.0.0",
|
112
113
|
"react-dom": "^18.3.1",
|
113
114
|
"react-native-gesture-handler": "^2.18.1",
|
@@ -117,7 +118,7 @@
|
|
117
118
|
"url-parse": "^1.5.10",
|
118
119
|
"vite": "6.0.0-beta.1",
|
119
120
|
"vite-tsconfig-paths": "^5.0.1",
|
120
|
-
"vxrn": "1.1.
|
121
|
+
"vxrn": "1.1.303",
|
121
122
|
"ws": "^8.18.0",
|
122
123
|
"xxhashjs": "^0.2.2"
|
123
124
|
},
|
package/src/cli/run.ts
CHANGED
@@ -6,10 +6,14 @@ export async function run(args: {
|
|
6
6
|
host?: string
|
7
7
|
port?: string
|
8
8
|
https?: boolean
|
9
|
+
mode?: 'development' | 'production'
|
9
10
|
}) {
|
10
11
|
labelProcess('dev')
|
12
|
+
|
11
13
|
const { dev } = await import('vxrn')
|
14
|
+
|
12
15
|
const { start, stop } = await dev({
|
16
|
+
mode: args.mode,
|
13
17
|
clean: args.clean,
|
14
18
|
root: process.cwd(),
|
15
19
|
server: {
|
package/src/cli.ts
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'
|
@@ -22,6 +23,20 @@ const version = getPackageVersion()
|
|
22
23
|
|
23
24
|
void loadEnv(process.cwd())
|
24
25
|
|
26
|
+
if (path.sep !== '/') {
|
27
|
+
console.warn(
|
28
|
+
colors.bgYellow('WARNING: UNSUPPORTED OS') +
|
29
|
+
colors.yellow(
|
30
|
+
' - It appears you’re using Windows, which is currently not supported. You may experience unexpected issues.'
|
31
|
+
)
|
32
|
+
)
|
33
|
+
}
|
34
|
+
|
35
|
+
const modes = {
|
36
|
+
development: 'development',
|
37
|
+
production: 'production',
|
38
|
+
} as const
|
39
|
+
|
25
40
|
const dev = defineCommand({
|
26
41
|
meta: {
|
27
42
|
name: 'dev',
|
@@ -41,10 +56,21 @@ const dev = defineCommand({
|
|
41
56
|
https: {
|
42
57
|
type: 'boolean',
|
43
58
|
},
|
59
|
+
mode: {
|
60
|
+
type: 'string',
|
61
|
+
description:
|
62
|
+
'If set to "production" you can run the development server but serve the production bundle',
|
63
|
+
},
|
44
64
|
},
|
45
|
-
async run({ args }) {
|
65
|
+
async run({ args: { clean, host, https, mode, port } }) {
|
46
66
|
const { run } = await import('./cli/run')
|
47
|
-
await run(
|
67
|
+
await run({
|
68
|
+
clean,
|
69
|
+
host,
|
70
|
+
https,
|
71
|
+
mode: modes[mode],
|
72
|
+
port,
|
73
|
+
})
|
48
74
|
},
|
49
75
|
})
|
50
76
|
|
package/src/useLoader.ts
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
/* eslint-disable react-hooks/rules-of-hooks */
|
2
2
|
import { useEffect, useRef } from 'react'
|
3
|
-
import {
|
3
|
+
import { getLoaderPath } from './cleanUrl'
|
4
4
|
import { useActiveParams, useParams } from './hooks'
|
5
5
|
import { resolveHref } from './link/href'
|
6
6
|
import { useRouteNode } from './Route'
|
7
|
-
import { CACHE_KEY } from './router/constants'
|
8
7
|
import { preloadingLoader } from './router/router'
|
9
8
|
import type { LoaderProps } from './types'
|
10
9
|
import { dynamicImport } from './utils/dynamicImport'
|
11
10
|
import { weakKey } from './utils/weakKey'
|
12
|
-
import { getLoaderPath } from './cleanUrl'
|
13
11
|
|
14
12
|
const promises: Record<string, undefined | Promise<void>> = {}
|
15
13
|
const errors = {}
|
package/src/vite/one.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import events from 'node:events'
|
2
|
-
import path, { dirname,
|
2
|
+
import path, { dirname, resolve } from 'node:path'
|
3
3
|
import { type Plugin, type PluginOption, type UserConfig, loadConfigFromFile } from 'vite'
|
4
4
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
5
5
|
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from 'vxrn'
|
package/types/cli/run.d.ts
CHANGED
package/types/cli/run.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAGA,wBAAsB,GAAG,CAAC,IAAI,EAAE;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAGA,wBAAsB,GAAG,CAAC,IAAI,EAAE;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAA;CACpC,iBAkCA"}
|
package/types/useLoader.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../src/useLoader.ts"],"names":[],"mappings":"AAeA,wBAAgB,SAAS,CACvB,MAAM,SAAS,QAAQ,EACvB,QAAQ,GAAG,MAAM,SAAS,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,OAAO,EACxE,MAAM,EAAE,MAAM,GAAG,QAAQ,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAwH9E"}
|