one 1.1.304 → 1.1.306
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/createHandleRequest.js +0 -3
- package/dist/cjs/createHandleRequest.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +0 -3
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/getRoutes.js.map +1 -1
- package/dist/cjs/getRoutes.native.js.map +1 -1
- package/dist/cjs/vite/one.js +5 -5
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js +5 -5
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/esm/createHandleRequest.js +0 -2
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +0 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +0 -2
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/getRoutes.js.map +1 -1
- package/dist/esm/getRoutes.mjs.map +1 -1
- package/dist/esm/getRoutes.native.js.map +1 -1
- package/dist/esm/vite/one.js +5 -5
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +5 -5
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +5 -5
- package/dist/esm/vite/one.native.js.map +2 -2
- package/package.json +10 -9
- package/src/createHandleRequest.ts +0 -4
- package/src/getRoutes.ts +0 -3
- package/src/vite/one.ts +6 -6
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/getRoutes.d.ts.map +1 -1
- package/dist/cjs/utils/requireResolve.js +0 -25
- package/dist/cjs/utils/requireResolve.js.map +0 -6
- package/dist/cjs/utils/requireResolve.native.js +0 -31
- package/dist/cjs/utils/requireResolve.native.js.map +0 -6
- package/dist/esm/utils/requireResolve.js +0 -9
- package/dist/esm/utils/requireResolve.js.map +0 -6
- package/dist/esm/utils/requireResolve.mjs +0 -7
- package/dist/esm/utils/requireResolve.mjs.map +0 -1
- package/dist/esm/utils/requireResolve.native.js +0 -9
- package/dist/esm/utils/requireResolve.native.js.map +0 -6
- package/src/utils/requireResolve.ts +0 -10
- package/types/utils/requireResolve.d.ts +0 -2
- package/types/utils/requireResolve.d.ts.map +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/getRoutes.ts"],
|
4
|
-
"mappings": "AAAA,SAASA,4BAA4B;AACrC,SACEC,qBACAC,2BACAC,kBACAC,gBACAC,iCACK;AAEP,SAASC,qBAAqB;AAyB9B,IAAMC,iBAAiB,oBAAIC,IAAI;EAAC;EAAW;EAAO;EAAU;CAAM;AAc3D,SAASC,UACdC,eAA+B;MAC/BC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAmB,CAAC,GAEdC,gBAAgBC,iBAAiBH,eAAeC,OAAAA;AAGtD,MAAI,CAACC;AACH,WAAO;AAGT,MAAME,WAAWC,6BAA6BH,eAAeD,OAAAA;AAE7D,SAAKA,QAAQK,qBACXC,yCAAyCH,UAAUH,OAAAA,GAG9CG;AACT;AAEO,SAASI,eACdR,eAA+B;MAC/BC,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAmB,CAAC;AAEpB,SAAOF,UAAUC,eAAe;IAC9B,GAAGC;IACHQ,eAAe;EACjB,CAAA;AACF;AAKA,SAASN,iBAAiBH,eAAiCC,SAAgB;AACzE,MAAMS,aAAaT,QAAQS,cAAcC,QAAQC,IAAIC,wBAE/CC,aAAuB;IAAC;;AAE9B,EAAIb,QAAQc,UACVD,WAAWE,KAAI,GAAIf,QAAQc,MAAM,GAE9Bd,QAAQgB,qBACXH,WAAWE,KAAK,iBAAA;AAGlB,MAAME,gBAA+B;IACnCC,OAAO,oBAAIC,IAAAA;IACXC,gBAAgB,oBAAID,IAAAA;EACtB,GAEIE,YAAY,IACZC,UAAU,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eAAUA,OAAMxC,UAAUiF;;AACnE,UAAI,CAACK,cAAc;AACjB,YAAMC,qBAAqB3F,KAAKM,SAC7ByE,OAAO,SAACnC,QAAAA;iBAAU,CAACA,OAAMb;WACzBiC,IAAI,SAACpB,QAAAA;iBAAU,IAAIA,OAAMxC,KAAK;WAC9BoD,KAAK,IAAA;AAER,cAAI0B,YACI,IAAI3D,MACR,UAAUvB,KAAKG,UAAU,kCAAkCkF,gBAAAA,iBAAiCH,SAAAA,0BAAmCS,kBAAAA,EAAoB,IAGjJ,IAAIpE,MACR,UAAUvB,KAAKG,UAAU,kCAAkCkF,gBAAAA,yBAAyCM,kBAAAA,EAAoB;MAE5H;AAGA3F,WAAKqF,mBAAmBA,kBACxBC,YAAYxG,KAAK4G,aAAavF,UAAU;IAC1C;QAEK,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,eAAK,YAAeH,KAAKM,SAAQ,OAAA,QAAA,EAAA,GAA5B,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA8B;AAA9B,YAAMsC,QAAN,MAAA;AACHvE,iDAAyCuE,OAAO7E,SAASuH,WAAAA;MAC3D;;AAFK,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;EAGP;AACF;",
|
5
5
|
"names": ["getDefaultRenderMode", "matchArrayGroupName", "matchDeepDynamicRouteName", "matchDynamicName", "matchGroupName", "removeSupportedExtensions", "getPageExport", "validPlatforms", "Set", "getRoutes", "contextModule", "options", "directoryTree", "getDirectoryTree", "rootNode", "flattenDirectoryTreeToRoutes", "ignoreEntryPoints", "crawlAndAppendInitialRoutesAndEntryFiles", "getExactRoutes", "skipGenerated", "importMode", "process", "env", "One_ROUTER_IMPORT_MODE", "ignoreList", "ignore", "push", "preserveApiRoutes", "rootDirectory", "files", "Map", "subdirectories", "hasRoutes", "isValid", "filePath", "some", "regex", "test", "meta", "getFileMeta", "specificity", "type", "isLayout", "renderMode", "node", "loadRoute", "ignoreRequireErrors", "contextKey", "route", "dynamic", "children", "NODE_ENV", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "extrapolateGroups", "subdirectoryParts", "split", "slice", "directory", "part", "subDirectory", "get", "set", "layout", "existing", "Error", "getLayoutNode", "fileKey", "nodes", "keys", "default", "require", "DefaultNavigator", "generated", "appendSitemapRoute", "appendNotFoundRoute", "pathToRemove", "previousLayout", "getMostSpecific", "internal_stripLoadRoute", "newRoute", "replace", "generateDynamic", "values", "routes", "routeNode", "child", "key", "parts", "filename", "length", "filenameWithoutExtensions", "startsWith", "_fullname", "renderModeFound", "match", "endsWith", "renamedRoute", "join", "platformExtension", "hasPlatformExtension", "has", "usePlatformRoutes", "platformRoutes", "platform", "RegExp", "map", "r", "getIgnoreList", "add", "groups", "groupsSet", "size", "group", "trim", "path", "name", "deep", "notFound", "deepDynamicName", "dynamicName", "filter", "getNavOptions", "internal", "groupName", "childMatchingGroup", "find", "initialRouteName", "entryPoints", "loaded", "unstable_settings", "groupSpecificInitialRouteName", "initialRoute", "validInitialRoutes"]
|
6
6
|
}
|
package/dist/esm/vite/one.js
CHANGED
@@ -5,7 +5,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
|
|
5
5
|
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
|
6
6
|
import "../polyfills-server";
|
7
7
|
import { existsAsync } from "../utils/existsAsync";
|
8
|
-
import {
|
8
|
+
import { resolvePath } from "@vxrn/resolve";
|
9
9
|
import { clientTreeShakePlugin } from "./clientTreeShakePlugin";
|
10
10
|
import { createFileSystemRouter } from "./createFileSystemRouter";
|
11
11
|
import { ensureTSConfig } from "./ensureTsConfig";
|
@@ -56,12 +56,12 @@ function one(options = {}) {
|
|
56
56
|
return {
|
57
57
|
resolve: {
|
58
58
|
alias: {
|
59
|
-
tslib:
|
59
|
+
tslib: resolvePath("@vxrn/tslib-lite")
|
60
60
|
}
|
61
61
|
// [
|
62
62
|
// {
|
63
63
|
// find: /tslib/,
|
64
|
-
// replacement:
|
64
|
+
// replacement: resolvePath('@vxrn/tslib-lite'),
|
65
65
|
// },
|
66
66
|
// // not working but would save ~30Kb stat
|
67
67
|
// // {
|
@@ -173,8 +173,8 @@ function one(options = {}) {
|
|
173
173
|
const sharedNativeConfig = {
|
174
174
|
resolve: {
|
175
175
|
alias: {
|
176
|
-
react:
|
177
|
-
"react-dom":
|
176
|
+
react: resolvePath("one/react-18"),
|
177
|
+
"react-dom": resolvePath("one/react-dom-18")
|
178
178
|
}
|
179
179
|
}
|
180
180
|
};
|
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,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,wBAAwB;AACpE,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,
|
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,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,eAAe;AAExB,SAAS,oBAAoB,sBAAsB;AACnD,SAAS,wBAAwB;AAEjC,OAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAER,QAAQ,QAAQ,IAAI,CAAC,GAGtB,QAAQ,QAAQ,mBAAmB,MAChC,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BAAM,gBAAgB,eAAe;AACrC,gBAAI,MAAM,YAAY,aAAa;AACjC,qBAAO;AAET,gBAAI,MAAM,YAAY,OAAO;AAC3B,qBAAO;AAAA,UAEX,SAAS,KAAK;AACZ,oBAAQ,KAAK,uBAAuB,GAAG;AAAA,UACzC;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,SAAS,CAAC,cAAc;AAAA,IAC1B,CAAC;AAAA,EACH;AACF;AAEA,IAAI,aAAuC;AAE3C,eAAe,kBAAkB,SAA6B;AAC5D,MAAI,CAAC,YAAY;AACf,QAAI,CAAC,QAAS,OAAM,IAAI,MAAM,yCAAyC;AACvE,UAAM,mBAAmB,OAAO;AAAA,EAClC;AACA,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,4BAA4B;AAE9C,SAAO;AACT;AAEA,eAAsB,mBAAmB,SAA4B;AAKnE,MAAI,CAJU,MAAM,mBAAmB;AAAA,IACrC,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AAEC,UAAM,IAAI,MAAM,sBAAsB,QAAQ,IAAI,CAAC,kCAAkC;AAEvF,QAAM,eAAe,kBAAkB;AACvC,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,yCAAyC;AAE3D,SAAO;AACT;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/vite/one.mjs
CHANGED
@@ -5,7 +5,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
|
|
5
5
|
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
|
6
6
|
import "../polyfills-server.mjs";
|
7
7
|
import { existsAsync } from "../utils/existsAsync.mjs";
|
8
|
-
import {
|
8
|
+
import { resolvePath } from "@vxrn/resolve";
|
9
9
|
import { clientTreeShakePlugin } from "./clientTreeShakePlugin.mjs";
|
10
10
|
import { createFileSystemRouter } from "./createFileSystemRouter.mjs";
|
11
11
|
import { ensureTSConfig } from "./ensureTsConfig.mjs";
|
@@ -50,12 +50,12 @@ function one(options = {}) {
|
|
50
50
|
return {
|
51
51
|
resolve: {
|
52
52
|
alias: {
|
53
|
-
tslib:
|
53
|
+
tslib: resolvePath("@vxrn/tslib-lite")
|
54
54
|
}
|
55
55
|
// [
|
56
56
|
// {
|
57
57
|
// find: /tslib/,
|
58
|
-
// replacement:
|
58
|
+
// replacement: resolvePath('@vxrn/tslib-lite'),
|
59
59
|
// },
|
60
60
|
// // not working but would save ~30Kb stat
|
61
61
|
// // {
|
@@ -158,8 +158,8 @@ function one(options = {}) {
|
|
158
158
|
const sharedNativeConfig = {
|
159
159
|
resolve: {
|
160
160
|
alias: {
|
161
|
-
react:
|
162
|
-
"react-dom":
|
161
|
+
react: resolvePath("one/react-18"),
|
162
|
+
"react-dom": resolvePath("one/react-dom-18")
|
163
163
|
}
|
164
164
|
}
|
165
165
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","
|
1
|
+
{"version":3,"names":["events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","existsAsync","resolvePath","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,WAAA,QAAmB;AAC5B,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,uBAAuB,MAAM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"vite-tsconfig-paths";
|
|
5
5
|
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
|
6
6
|
import "../polyfills-server";
|
7
7
|
import { existsAsync } from "../utils/existsAsync";
|
8
|
-
import {
|
8
|
+
import { resolvePath } from "@vxrn/resolve";
|
9
9
|
import { clientTreeShakePlugin } from "./clientTreeShakePlugin";
|
10
10
|
import { createFileSystemRouter } from "./createFileSystemRouter";
|
11
11
|
import { ensureTSConfig } from "./ensureTsConfig";
|
@@ -54,7 +54,7 @@ function one() {
|
|
54
54
|
return {
|
55
55
|
resolve: {
|
56
56
|
alias: {
|
57
|
-
tslib:
|
57
|
+
tslib: resolvePath("@vxrn/tslib-lite")
|
58
58
|
}
|
59
59
|
}
|
60
60
|
};
|
@@ -63,7 +63,7 @@ function one() {
|
|
63
63
|
// [
|
64
64
|
// {
|
65
65
|
// find: /tslib/,
|
66
|
-
// replacement:
|
66
|
+
// replacement: resolvePath('@vxrn/tslib-lite'),
|
67
67
|
// },
|
68
68
|
// // not working but would save ~30Kb stat
|
69
69
|
// // {
|
@@ -178,8 +178,8 @@ function one() {
|
|
178
178
|
var sharedNativeConfig = {
|
179
179
|
resolve: {
|
180
180
|
alias: {
|
181
|
-
react:
|
182
|
-
"react-dom":
|
181
|
+
react: resolvePath("one/react-18"),
|
182
|
+
"react-dom": resolvePath("one/react-dom-18")
|
183
183
|
}
|
184
184
|
}
|
185
185
|
};
|
@@ -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,OAAOA,YAAY;AACnB,OAAOC,QAAQC,SAASC,eAAe;AACvC,SAA0DC,0BAA0B;AACpF,OAAOC,mBAAmB;AAC1B,SAASC,iBAAiBC,kBAAkBC,wBAAwB;AACpE,OAAO;AACP,SAASC,mBAAmB;AAC5B,SAASC,
|
5
|
-
"names": ["events", "path", "dirname", "resolve", "load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AACH,UAAM,IAAIJ,MAAM,yCAAyC;AAE3D,SAAOI;AACT;",
|
5
|
+
"names": ["events", "path", "dirname", "resolve", "loadConfigFromFile", "tsconfigPaths", "getOptimizeDeps", "getOptionsFilled", "isWebEnvironment", "existsAsync", "resolvePath", "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.306",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -89,13 +89,14 @@
|
|
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/
|
93
|
-
"@vxrn/
|
94
|
-
"@vxrn/
|
92
|
+
"@vxrn/resolve": "1.1.306",
|
93
|
+
"@vxrn/tslib-lite": "1.1.306",
|
94
|
+
"@vxrn/universal-color-scheme": "1.1.306",
|
95
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.306",
|
95
96
|
"babel-dead-code-elimination": "^1.0.6",
|
96
97
|
"citty": "^0.1.6",
|
97
98
|
"core-js": "^3.38.1",
|
98
|
-
"create-vxrn": "1.1.
|
99
|
+
"create-vxrn": "1.1.306",
|
99
100
|
"dotenv": "^16.4.5",
|
100
101
|
"escape-string-regexp": "^5.0.0",
|
101
102
|
"expo-linking": "~6.3.1",
|
@@ -112,13 +113,13 @@
|
|
112
113
|
"react": "^18.2.0 || ^19.0.0",
|
113
114
|
"react-dom": "^18.3.1",
|
114
115
|
"react-native-gesture-handler": "^2.18.1",
|
115
|
-
"react-native-safe-area-context": "
|
116
|
+
"react-native-safe-area-context": "4.10.5",
|
116
117
|
"react-native-screens": "3.31.1",
|
117
118
|
"rollup-plugin-node-externals": "^7.1.2",
|
118
119
|
"url-parse": "^1.5.10",
|
119
120
|
"vite": "6.0.0-beta.1",
|
120
121
|
"vite-tsconfig-paths": "^5.0.1",
|
121
|
-
"vxrn": "1.1.
|
122
|
+
"vxrn": "1.1.306",
|
122
123
|
"ws": "^8.18.0",
|
123
124
|
"xxhashjs": "^0.2.2"
|
124
125
|
},
|
@@ -126,14 +127,14 @@
|
|
126
127
|
"react-native": "*"
|
127
128
|
},
|
128
129
|
"devDependencies": {
|
129
|
-
"@tamagui/build": "^1.114.
|
130
|
+
"@tamagui/build": "^1.114.3",
|
130
131
|
"@types/node": "^22.1.0",
|
131
132
|
"@types/react-dom": "^18.2.25",
|
132
133
|
"@types/url-parse": "^1.4.11",
|
133
134
|
"@types/xxhashjs": "^0.2.4",
|
134
135
|
"depcheck": "^1.4.7",
|
135
136
|
"get-port": "^7.1.0",
|
136
|
-
"react-native": "0.74.
|
137
|
+
"react-native": "0.74.5",
|
137
138
|
"rollup": "^4.21.0",
|
138
139
|
"vitest": "^2.1.1"
|
139
140
|
},
|
@@ -22,10 +22,6 @@ export function createHandleRequest(
|
|
22
22
|
handleAPI?: (props: RequestHandlerProps) => Promise<any>
|
23
23
|
}
|
24
24
|
) {
|
25
|
-
if (import.meta.env) {
|
26
|
-
throw new Error(`No import.meta.env - Node 22 or greater required.`)
|
27
|
-
}
|
28
|
-
|
29
25
|
const manifest = getManifest()
|
30
26
|
if (!manifest) {
|
31
27
|
throw new Error(`No routes manifest`)
|
package/src/getRoutes.ts
CHANGED
@@ -8,7 +8,6 @@ import {
|
|
8
8
|
} from './matchers'
|
9
9
|
import type { DynamicConvention, RouteNode } from './Route'
|
10
10
|
import { getPageExport } from './utils/getPageExport'
|
11
|
-
import { requireResolve } from './utils/requireResolve'
|
12
11
|
import type { One } from './vite/types'
|
13
12
|
// import { Unmatched } from './views/Unmatched'
|
14
13
|
|
@@ -488,8 +487,6 @@ export function generateDynamic(path: string): DynamicConvention[] | null {
|
|
488
487
|
return dynamic.length === 0 ? null : dynamic
|
489
488
|
}
|
490
489
|
|
491
|
-
// const resolve = (path) => new URL(path, import.meta.url).pathname
|
492
|
-
|
493
490
|
function appendSitemapRoute(directory: DirectoryNode) {
|
494
491
|
if (!directory.files.has('_sitemap')) {
|
495
492
|
directory.files.set('_sitemap', [
|
package/src/vite/one.ts
CHANGED
@@ -5,7 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
|
5
5
|
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from 'vxrn'
|
6
6
|
import '../polyfills-server'
|
7
7
|
import { existsAsync } from '../utils/existsAsync'
|
8
|
-
import {
|
8
|
+
import { resolvePath } from '@vxrn/resolve'
|
9
9
|
import { clientTreeShakePlugin } from './clientTreeShakePlugin'
|
10
10
|
import { createFileSystemRouter } from './createFileSystemRouter'
|
11
11
|
import { ensureTSConfig } from './ensureTsConfig'
|
@@ -91,18 +91,18 @@ export function one(options: One.PluginOptions = {}): PluginOption {
|
|
91
91
|
enforce: 'pre',
|
92
92
|
|
93
93
|
config() {
|
94
|
-
// const forkPath = dirname(
|
94
|
+
// const forkPath = dirname(resolvePath('one'))
|
95
95
|
|
96
96
|
return {
|
97
97
|
resolve: {
|
98
98
|
alias: {
|
99
|
-
tslib:
|
99
|
+
tslib: resolvePath('@vxrn/tslib-lite'),
|
100
100
|
},
|
101
101
|
|
102
102
|
// [
|
103
103
|
// {
|
104
104
|
// find: /tslib/,
|
105
|
-
// replacement:
|
105
|
+
// replacement: resolvePath('@vxrn/tslib-lite'),
|
106
106
|
// },
|
107
107
|
// // not working but would save ~30Kb stat
|
108
108
|
// // {
|
@@ -254,8 +254,8 @@ export function one(options: One.PluginOptions = {}): PluginOption {
|
|
254
254
|
const sharedNativeConfig = {
|
255
255
|
resolve: {
|
256
256
|
alias: {
|
257
|
-
react:
|
258
|
-
'react-dom':
|
257
|
+
react: resolvePath('one/react-18'),
|
258
|
+
'react-dom': resolvePath('one/react-dom-18'),
|
259
259
|
},
|
260
260
|
},
|
261
261
|
} satisfies UserConfig
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createHandleRequest.d.ts","sourceRoot":"","sources":["../src/createHandleRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAI9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAEvC,KAAK,mBAAmB,CAAC,eAAe,SAAS,MAAM,GAAG,EAAE,IAAI;IAC9D,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,eAAe,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CA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AAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACzD;;uBA4BgD,OAAO,KAAG,OAAO,CAAC,sBAAsB,CAAC;EAiJ3F"}
|
package/types/getRoutes.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getRoutes.d.ts","sourceRoot":"","sources":["../src/getRoutes.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;
|
1
|
+
{"version":3,"file":"getRoutes.d.ts","sourceRoot":"","sources":["../src/getRoutes.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAE3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAGvC,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAE3B,uBAAuB,CAAC,EAAE,OAAO,CAAA;IAEjC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAUD;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CACvB,aAAa,EAAE,GAAG,CAAC,YAAY,EAC/B,OAAO,GAAE,OAAY,GACpB,SAAS,GAAG,IAAI,CAelB;AAED,wBAAgB,cAAc,CAC5B,aAAa,EAAE,GAAG,CAAC,YAAY,EAC/B,OAAO,GAAE,OAAY,GACpB,SAAS,GAAG,IAAI,CAKlB;AAgWD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,YAM9C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAwBzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,IAAI,CAqBxE"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __export = (target, all) => {
|
6
|
-
for (var name in all)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
10
|
-
for (let key of __getOwnPropNames(from))
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
15
|
-
var requireResolve_exports = {};
|
16
|
-
__export(requireResolve_exports, {
|
17
|
-
requireResolve: () => requireResolve
|
18
|
-
});
|
19
|
-
module.exports = __toCommonJS(requireResolve_exports);
|
20
|
-
var import_node_module = require("node:module");
|
21
|
-
const import_meta = {}, require2 = (0, import_node_module.createRequire)(import_meta.url);
|
22
|
-
function requireResolve(name) {
|
23
|
-
return typeof import_meta.resolve > "u" ? require2.resolve(name) : import_meta.resolve(name).replace("file://", "");
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=requireResolve.js.map
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../src/utils/requireResolve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA8B;AAA9B,wBAEMA,eAAU,kCAAc,YAAY,GAAG;AAEtC,SAAS,eAAe,MAAc;AAC3C,SAAI,OAAO,YAAY,UAAY,MAC1BA,SAAQ,QAAQ,IAAI,IAEtB,YAAY,QAAQ,IAAI,EAAE,QAAQ,WAAW,EAAE;AACxD;",
|
5
|
-
"names": ["require"]
|
6
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
-
return to;
|
14
|
-
};
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
16
|
-
var requireResolve_exports = {};
|
17
|
-
__export(requireResolve_exports, {
|
18
|
-
requireResolve: () => requireResolve
|
19
|
-
});
|
20
|
-
module.exports = __toCommonJS(requireResolve_exports);
|
21
|
-
var import_node_module = require("node:module");
|
22
|
-
const import_meta = {};
|
23
|
-
var require2 = (0, import_node_module.createRequire)(import_meta.url);
|
24
|
-
function requireResolve(name) {
|
25
|
-
return typeof import_meta.resolve > "u" ? require2.resolve(name) : import_meta.resolve(name).replace("file://", "");
|
26
|
-
}
|
27
|
-
// Annotate the CommonJS export names for ESM import in node:
|
28
|
-
0 && (module.exports = {
|
29
|
-
requireResolve
|
30
|
-
});
|
31
|
-
//# sourceMappingURL=requireResolve.js.map
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/requireResolve.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;yBAA8B;AAA9B;AAEA,IAAMA,eAAUC,kCAAc,YAAYC,GAAG;AAEtC,SAASC,eAAeC,MAAY;AACzC,SAAI,OAAO,YAAYC,UAAY,MAC1BL,SAAQK,QAAQD,IAAAA,IAElB,YAAYC,QAAQD,IAAAA,EAAME,QAAQ,WAAW,EAAA;AACtD;",
|
5
|
-
"names": ["require", "createRequire", "url", "requireResolve", "name", "resolve", "replace"]
|
6
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { createRequire } from "node:module";
|
2
|
-
const require2 = createRequire(import.meta.url);
|
3
|
-
function requireResolve(name) {
|
4
|
-
return typeof import.meta.resolve > "u" ? require2.resolve(name) : import.meta.resolve(name).replace("file://", "");
|
5
|
-
}
|
6
|
-
export {
|
7
|
-
requireResolve
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=requireResolve.js.map
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../src/utils/requireResolve.ts"],
|
4
|
-
"mappings": "AAAA,SAAS,qBAAqB;AAE9B,MAAMA,WAAU,cAAc,YAAY,GAAG;AAEtC,SAAS,eAAe,MAAc;AAC3C,SAAI,OAAO,YAAY,UAAY,MAC1BA,SAAQ,QAAQ,IAAI,IAEtB,YAAY,QAAQ,IAAI,EAAE,QAAQ,WAAW,EAAE;AACxD;",
|
5
|
-
"names": ["require"]
|
6
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { createRequire } from "node:module";
|
2
|
-
const require2 = createRequire(import.meta.url);
|
3
|
-
function requireResolve(name) {
|
4
|
-
return typeof import.meta.resolve > "u" ? require2.resolve(name) : import.meta.resolve(name).replace("file://", "");
|
5
|
-
}
|
6
|
-
export { requireResolve };
|
7
|
-
//# sourceMappingURL=requireResolve.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["createRequire","require2","import","meta","url","requireResolve","name","resolve","replace"],"sources":["../../../src/utils/requireResolve.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAE9B,MAAMC,QAAA,GAAUD,aAAA,CAAcE,MAAA,CAAAC,IAAA,CAAYC,GAAG;AAEtC,SAASC,eAAeC,IAAA,EAAc;EAC3C,OAAI,OAAOJ,MAAA,CAAAC,IAAA,CAAYI,OAAA,GAAY,MAC1BN,QAAA,CAAQM,OAAA,CAAQD,IAAI,IAEtBJ,MAAA,CAAAC,IAAA,CAAYI,OAAA,CAAQD,IAAI,EAAEE,OAAA,CAAQ,WAAW,EAAE;AACxD","ignoreList":[]}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { createRequire } from "node:module";
|
2
|
-
var require2 = createRequire(import.meta.url);
|
3
|
-
function requireResolve(name) {
|
4
|
-
return typeof import.meta.resolve > "u" ? require2.resolve(name) : import.meta.resolve(name).replace("file://", "");
|
5
|
-
}
|
6
|
-
export {
|
7
|
-
requireResolve
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=requireResolve.js.map
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/requireResolve.ts"],
|
4
|
-
"mappings": "AAAA,SAASA,qBAAqB;AAE9B,IAAMC,WAAUD,cAAc,YAAYE,GAAG;AAEtC,SAASC,eAAeC,MAAY;AACzC,SAAI,OAAO,YAAYC,UAAY,MAC1BJ,SAAQI,QAAQD,IAAAA,IAElB,YAAYC,QAAQD,IAAAA,EAAME,QAAQ,WAAW,EAAA;AACtD;",
|
5
|
-
"names": ["createRequire", "require", "url", "requireResolve", "name", "resolve", "replace"]
|
6
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { createRequire } from 'node:module'
|
2
|
-
|
3
|
-
const require = createRequire(import.meta.url)
|
4
|
-
|
5
|
-
export function requireResolve(name: string) {
|
6
|
-
if (typeof import.meta.resolve === 'undefined') {
|
7
|
-
return require.resolve(name)
|
8
|
-
}
|
9
|
-
return import.meta.resolve(name).replace('file://', '')
|
10
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"requireResolve.d.ts","sourceRoot":"","sources":["../../src/utils/requireResolve.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,UAK1C"}
|