one 1.1.316 → 1.1.318
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/serve.cjs +5 -3
- package/dist/cjs/serve.cjs.map +1 -1
- package/dist/cjs/serve.native.js +5 -3
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/utils/getPageExport.cjs +19 -7
- package/dist/cjs/utils/getPageExport.cjs.map +1 -1
- package/dist/cjs/utils/getPageExport.native.js +18 -4
- package/dist/cjs/utils/getPageExport.native.js.map +2 -2
- package/dist/cjs/vite/createFileSystemRouter.cjs +7 -7
- package/dist/cjs/vite/createFileSystemRouter.cjs.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +12 -12
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/cjs/vite/one.cjs +3 -1
- package/dist/cjs/vite/one.cjs.map +1 -1
- package/dist/cjs/vite/one.native.js +6 -1
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/esm/serve.js +5 -3
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +5 -3
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +5 -3
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/utils/getPageExport.js +13 -2
- package/dist/esm/utils/getPageExport.js.map +1 -1
- package/dist/esm/utils/getPageExport.mjs +19 -7
- package/dist/esm/utils/getPageExport.mjs.map +1 -1
- package/dist/esm/utils/getPageExport.native.js +18 -4
- package/dist/esm/utils/getPageExport.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +9 -9
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +7 -7
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +12 -12
- package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/esm/vite/one.js +12 -1
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +4 -2
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +7 -2
- package/dist/esm/vite/one.native.js.map +2 -2
- package/package.json +7 -7
- package/src/serve.ts +5 -2
- package/src/utils/getPageExport.ts +21 -2
- package/src/vite/createFileSystemRouter.tsx +12 -12
- package/src/vite/one.ts +17 -3
- package/src/vite/types.ts +7 -0
- package/types/utils/getPageExport.d.ts +1 -1
- package/types/utils/getPageExport.d.ts.map +1 -1
- package/types/vite/one.d.ts.map +1 -1
- package/types/vite/types.d.ts +6 -0
- package/types/vite/types.d.ts.map +1 -1
package/dist/esm/serve.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","bracketRoutePath","split","map","part","slice","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA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Ac+B,OAAA,CAAQ7B,OAAO;MAEpD,IAAI4B,QAAA,EAAU;QACZ,IAAIpE,UAAA,CAAWoE,QAAQ,GAAG;UACxB,IAAInE,gBAAA,CAAiBmE,QAAA,CAASE,MAAM,GAAG;YACrC,MAAMC,QAAA,GAAW,GAAGH,QAAA,CAASX,OAAA,CAAQhD,GAAA,CAAI,UAAU,KAAK,EAAE;YAC1D,
|
1
|
+
{"version":3,"names":["FSExtra","join","getServerEntry","loadEnv","serve","vxrnServe","process","on","err","console","error","stack","args","buildInfo","readJSON","env","ONE_CACHE_KEY","constants","CACHE_KEY","labelProcess","removeUndefined","loadUserOneOptions","oneOptions","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","createHandleRequest","isResponse","isStatusRedirect","resolveAPIRequest","isAPIRequest","WeakMap","root","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","bracketRoutePath","split","map","part","slice","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","Object","keys","loaderData","serverJsPath","loader","preloads","headers","Headers","Response","path","htmlFiles","key","readFile","use","next","html","raw","response","handler","status","location","forEach","value","header","info","json"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,SAASC,IAAA,QAAY;AAErB,SAASC,cAAA,EAAgBC,OAAA,EAASC,KAAA,IAASC,SAAA,QAAiB;AAK5DC,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBJ,MAAMQ,IAAA,GAA8B,CAAC,GAAG;EAC5D,MAAMC,SAAA,GAAa,MAAMb,OAAA,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G;YACrC,MAAMC,QAAA,GAAW,GAAGH,QAAA,CAASX,OAAA,CAAQhD,GAAA,CAAI,UAAU,KAAK,EAAE;YAC1D,OAAA2D,QAAA,CAASX,OAAA,CAAQe,OAAA,CAAQ,CAACC,KAAA,EAAOX,GAAA,KAAQ;cACvCnD,OAAA,CAAQ+D,MAAA,CAAOZ,GAAA,EAAKW,KAAK;YAC3B,CAAC,GACM9D,OAAA,CAAQH,QAAA,CAAS+D,QAAA,EAAUH,QAAA,CAASE,MAAM;UACnD;UAEA,IAAInE,YAAA,CAAaM,GAAA,CAAI+B,OAAO,GAC1B,IAAI;YAEF4B,QAAA,CAASX,OAAA,CAAQZ,GAAA,CAAI,iBAAiB,UAAU;UAClD,SAASzE,GAAA,EAAK;YACZC,OAAA,CAAQsG,IAAA,CACN,6CACEhE,OAAA,CAAQO,GAAA,CAAI0C,IACd,wBAAwBQ,QAAA,CAASX,OAAA,CAAQhD,GAAA,CAAI,eAAe,CAAC,cAC7DrC,GACF;UACF;UAGF,OAAOgG,QAAA;QACT;QAEA,OAAOzD,OAAA,CAAQiE,IAAA,CACbR,QAAA,EACA,KACAjE,YAAA,CAAaM,GAAA,CAAI+B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASpE,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM0F,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
|
package/dist/esm/serve.native.js
CHANGED
@@ -90,14 +90,14 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
|
|
90
90
|
} catch (err) {
|
91
91
|
return console.error(`
|
92
92
|
[one] Error importing API route at ${apiFile}:
|
93
|
-
|
93
|
+
|
94
94
|
${err}
|
95
95
|
|
96
96
|
If this is an import error, you can likely fix this by adding this dependency to
|
97
97
|
the "optimizeDeps.include" array in your vite.config.ts.
|
98
98
|
|
99
99
|
\u{1F41E} For a better error message run "node" and enter:
|
100
|
-
|
100
|
+
|
101
101
|
import('${apiFile}')
|
102
102
|
|
103
103
|
`), {};
|
@@ -145,7 +145,9 @@ async function oneServe(options, vxrnOptions, buildInfo, app) {
|
|
145
145
|
if (isResponse(response)) {
|
146
146
|
if (isStatusRedirect(response.status)) {
|
147
147
|
var location = `${response.headers.get("location") || ""}`;
|
148
|
-
return
|
148
|
+
return response.headers.forEach(function(value, key2) {
|
149
|
+
context.header(key2, value);
|
150
|
+
}), context.redirect(location, response.status);
|
149
151
|
}
|
150
152
|
if (isAPIRequest.get(request))
|
151
153
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/serve.ts"],
|
4
|
-
"mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,SAASC,YAAY;AAErB,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAK5DC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBJ,QAAAA;MAAMQ,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMb,QAAQc,SAAS,qBAAqB;AAG/DR,UAAQS,IAAIC,gBAAgBH,UAAUI,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,GACbhB,QAAQ,YAAA;AAER,MAAMmB,aAAa,MAAMD,mBAAmB,OAAA;AAG5Cf,iBAAQS,IAAIQ,gBAAgB,KAErB,MAAMlB,UAAU;IACrBmB,QAAQ;;MAEN,GAAGF,WAAWE;;MAEd,GAAGJ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AK;QACJ;MACF;IACF;EACF,CAAA,GAIIa,YAAoC,CAAC;AAC3C,WAAWC,OAAO3C,UAAU;AAC1B,QAAM4C,OAAO1C,iBAAiByC,GAAAA;AAE9B,IAAIC,MAAMd,SAAS,UAKnBY,UAAUC,GAAAA,IAAO,MAAMrG,QAAQuG,SAAStG,KAAK,eAAeyD,SAAS2C,GAAAA,CAAI,GAAG,OAAA;EAC9E;AAEApE,MAAIuE,IAAI,eAAOxD,SAASyD,MAAAA;AAEtB,QAAMC,OAAON,UAAUpD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAM/B,cAAcgC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,YAAIvE,WAAWuE,QAAAA,GAAW;AACxB,cAAItE,iBAAiBsE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;
|
5
|
-
"names": ["FSExtra", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "process", "on", "err", "console", "error", "stack", "args", "buildInfo", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "oneOptions", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "bracketRoutePath", "split", "map", "part", "slice", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "json"]
|
4
|
+
"mappings": "AAAA,OAAO;AAEP,OAAOA,aAAa;AAEpB,SAASC,YAAY;AAErB,SAASC,gBAAgBC,SAASC,SAASC,iBAAiB;AAK5DC,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,UAAQC,MAAM,4BAA4BF,KAAKG,SAASH,GAAAA;AAC1D,CAAA;AAEA,eAAsBJ,QAAAA;MAAMQ,OAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8B,CAAC,GACnDC,YAAa,MAAMb,QAAQc,SAAS,qBAAqB;AAG/DR,UAAQS,IAAIC,gBAAgBH,UAAUI,UAAUC;AAGhD,MAAM,EAAEC,aAAY,IAAK,MAAM,OAAO,qBAAA,GAChC,EAAEC,gBAAe,IAAK,MAAM,OAAO,yBAAA,GACnC,EAAEC,mBAAkB,IAAK,MAAM,OAAO,YAAA;AAE5CF,eAAa,OAAA,GACbhB,QAAQ,YAAA;AAER,MAAMmB,aAAa,MAAMD,mBAAmB,OAAA;AAG5Cf,iBAAQS,IAAIQ,gBAAgB,KAErB,MAAMlB,UAAU;IACrBmB,QAAQ;;MAEN,GAAGF,WAAWE;;MAEd,GAAGJ,gBAAgB;QACjBK,MAAMb,KAAKa,OAAO,CAACb,KAAKa,OAAOC;QAC/BC,MAAMf,KAAKe;QACXC,UAAUhB,KAAKgB;QACfC,UAAUjB,KAAKiB;QACfC,cAAclB,KAAKkB;MACrB,CAAA;MAEA,MAAMC,YAAYC,SAASC,KAAG;YACtBX,gCAAAA;AAAN,gBAAMA,qBAAAA,WAAWE,YAAM,QAAjBF,uBAAAA,WAAAA,iCAAAA,mBAAmBS,iBAAW,QAA9BT,mCAAAA,SAAAA,SAAAA,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pD,QAAQO,IAAI4C,IAAI;AACvC,QAAIO;AACF,aAAO1D,QAAQ0D,KAAKA,IAAAA;AAGtB,QAAI;AACF,UAAM3B,UAAU/B,QAAQO,IAAIoD,KACtBC,WAAW,MAAM/B,cAAcgC,QAAQ9B,OAAAA;AAE7C,UAAI6B,UAAU;AACZ,YAAIvE,WAAWuE,QAAAA,GAAW;AACxB,cAAItE,iBAAiBsE,SAASE,MAAM,GAAG;AACrC,gBAAMC,WAAW,GAAGH,SAASZ,QAAQlD,IAAI,UAAA,KAAe,EAAA;AACxD8D,4BAASZ,QAAQgB,QAAQ,SAACC,OAAOZ,MAAAA;AAC/BrD,sBAAQkE,OAAOb,MAAKY,KAAAA;YACtB,CAAA,GACOjE,QAAQH,SAASkE,UAAUH,SAASE,MAAM;UACnD;AAEA,cAAItE,aAAaM,IAAIiC,OAAAA;AACnB,gBAAI;AAEF6B,uBAASZ,QAAQZ,IAAI,iBAAiB,UAAA;YACxC,SAAS5E,KAAK;AACZC,sBAAQ6F,KACN,6CACEtD,QAAQO,IAAI4C,IAAI,wBACMS,SAASZ,QAAQlD,IAAI,eAAA,CAAA,cAC7CtC,GAAAA;YAEJ;AAGF,iBAAOoG;QACT;AAEA,eAAO5D,QAAQmE,KACbP,UACA,KACApE,aAAaM,IAAIiC,OAAAA,IACb;UACE,iBAAiB;QACnB,IACArD,MAAAA;MAER;IACF,SAASlB,KAAK;AACZC,cAAQC,MAAM,kCAAmCF,IAAY,KAAQ,EAAE;IACzE;AAEA,UAAMiG,KAAAA;EACR,CAAA;AACF;",
|
5
|
+
"names": ["FSExtra", "join", "getServerEntry", "loadEnv", "serve", "vxrnServe", "process", "on", "err", "console", "error", "stack", "args", "buildInfo", "readJSON", "env", "ONE_CACHE_KEY", "constants", "CACHE_KEY", "labelProcess", "removeUndefined", "loadUserOneOptions", "oneOptions", "VXRN_REACT_19", "server", "port", "undefined", "host", "compress", "platform", "cacheHeaders", "beforeStart", "options", "app", "oneServe", "vxrnOptions", "createHandleRequest", "isResponse", "isStatusRedirect", "resolveAPIRequest", "isAPIRequest", "WeakMap", "root", "redirects", "web", "redirect", "get", "source", "context", "destinationUrl", "destination", "replace", "param", "paramName", "substring", "req", "permanent", "Error", "routeMap", "builtRoutes", "routeToBuildInfo", "route", "cleanPath", "bracketRoutePath", "split", "map", "part", "slice", "serverOptions", "entryServer", "entry", "render", "default", "apiCJS", "build", "api", "outputFormat", "handleRequest", "handleAPI", "request", "loaderProps", "apiFile", "cwd", "page", "set", "params", "handleSSR", "url", "type", "Object", "keys", "exported", "serverJsPath", "loaderData", "loader", "preloads", "headers", "Headers", "Response", "path", "htmlFiles", "key", "info", "readFile", "use", "next", "html", "raw", "response", "handler", "status", "location", "forEach", "value", "header", "json"]
|
6
6
|
}
|
@@ -1,7 +1,18 @@
|
|
1
|
-
const getPageExport = (exported) => exported.default || // because HMR fails with default exports, allow exporting something else
|
1
|
+
const getPageLikeExports = (x) => x !== "loader" && x[0].toUpperCase() === x[0], getPageExport = (exported) => exported.default || // because HMR fails with default exports, allow exporting something else
|
2
2
|
// we just find the first non-loader export for now...
|
3
3
|
(() => {
|
4
|
-
const
|
4
|
+
const keys = Object.keys(exported);
|
5
|
+
process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
|
6
|
+
|
7
|
+
If there is no default export, One uses the first capitalized non-default export.
|
8
|
+
This is because React Refresh, the hot reloading library, does not work on default
|
9
|
+
exports, so you may prefer to use non-default exports. But exporting multiple can
|
10
|
+
cause issues, as browser clients and server runtimes may not sort the export keys
|
11
|
+
the same.
|
12
|
+
|
13
|
+
Be sure to only export a single capitalized non-default export per-route.
|
14
|
+
`);
|
15
|
+
const nonLoader = keys.find(getPageLikeExports);
|
5
16
|
if (nonLoader)
|
6
17
|
return exported[nonLoader];
|
7
18
|
})();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/utils/getPageExport.ts"],
|
4
|
-
"mappings": "
|
4
|
+
"mappings": "AAAA,MAAM,qBAAqB,CAAC,MAAc,MAAM,YAAY,EAAE,CAAC,EAAE,YAAY,MAAM,EAAE,CAAC,GAEzE,gBAAgB,CAAC,aAE1B,SAAS;AAAA;AAAA,CAGR,MAAM;AACL,QAAM,OAAO,OAAO,KAAK,QAAQ;AAEjC,EAAI,QAAQ,IAAI,aAAa,iBACF,KAAK,OAAO,kBAAkB,EAClC,SAAS,KAC5B,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;AAIP,QAAM,YAAY,KAAK,KAAK,kBAAkB;AAC9C,MAAI;AACF,WAAO,SAAS,SAAS;AAE7B,GAAG;",
|
5
5
|
"names": []
|
6
6
|
}
|
@@ -1,9 +1,21 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
//
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
const getPageLikeExports = x => x !== "loader" && x[0].toUpperCase() === x[0],
|
2
|
+
getPageExport = exported => exported.default ||
|
3
|
+
// because HMR fails with default exports, allow exporting something else
|
4
|
+
// we just find the first non-loader export for now...
|
5
|
+
(() => {
|
6
|
+
const keys = Object.keys(exported);
|
7
|
+
process.env.NODE_ENV === "development" && keys.filter(getPageLikeExports).length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
|
8
|
+
|
9
|
+
If there is no default export, One uses the first capitalized non-default export.
|
10
|
+
This is because React Refresh, the hot reloading library, does not work on default
|
11
|
+
exports, so you may prefer to use non-default exports. But exporting multiple can
|
12
|
+
cause issues, as browser clients and server runtimes may not sort the export keys
|
13
|
+
the same.
|
14
|
+
|
15
|
+
Be sure to only export a single capitalized non-default export per-route.
|
16
|
+
`);
|
17
|
+
const nonLoader = keys.find(getPageLikeExports);
|
18
|
+
if (nonLoader) return exported[nonLoader];
|
19
|
+
})();
|
8
20
|
export { getPageExport };
|
9
21
|
//# sourceMappingURL=getPageExport.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getPageExport","exported","default","
|
1
|
+
{"version":3,"names":["getPageLikeExports","x","toUpperCase","getPageExport","exported","default","keys","Object","process","env","NODE_ENV","filter","length","console","warn","nonLoader","find"],"sources":["../../../src/utils/getPageExport.ts"],"sourcesContent":[null],"mappings":"AAAA,MAAMA,kBAAA,GAAsBC,CAAA,IAAcA,CAAA,KAAM,YAAYA,CAAA,CAAE,CAAC,EAAEC,WAAA,CAAY,MAAMD,CAAA,CAAE,CAAC;EAEzEE,aAAA,GAAiBC,QAAA,IAE1BA,QAAA,CAASC,OAAA;EAAA;EAAA;EAAA,CAGR,MAAM;IACL,MAAMC,IAAA,GAAOC,MAAA,CAAOD,IAAA,CAAKF,QAAQ;IAE7BI,OAAA,CAAQC,GAAA,CAAIC,QAAA,KAAa,iBACFJ,IAAA,CAAKK,MAAA,CAAOX,kBAAkB,EAClCY,MAAA,GAAS,KAC5BC,OAAA,CAAQC,IAAA,CAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aASV;IAIP,MAAMC,SAAA,GAAYT,IAAA,CAAKU,IAAA,CAAKhB,kBAAkB;IAC9C,IAAIe,SAAA,EACF,OAAOX,QAAA,CAASW,SAAS;EAE7B,GAAG","ignoreList":[]}
|
@@ -1,10 +1,24 @@
|
|
1
|
-
var
|
1
|
+
var getPageLikeExports = function(x) {
|
2
|
+
return x !== "loader" && x[0].toUpperCase() === x[0];
|
3
|
+
}, getPageExport = function(exported) {
|
2
4
|
return exported.default || // because HMR fails with default exports, allow exporting something else
|
3
5
|
// we just find the first non-loader export for now...
|
4
6
|
function() {
|
5
|
-
var keys = Object.keys(exported)
|
6
|
-
|
7
|
-
|
7
|
+
var keys = Object.keys(exported);
|
8
|
+
if (process.env.NODE_ENV === "development") {
|
9
|
+
var upperCaseExports = keys.filter(getPageLikeExports);
|
10
|
+
upperCaseExports.length > 1 && console.warn(`Warning: You've exported more than one uppercase non-default export.
|
11
|
+
|
12
|
+
If there is no default export, One uses the first capitalized non-default export.
|
13
|
+
This is because React Refresh, the hot reloading library, does not work on default
|
14
|
+
exports, so you may prefer to use non-default exports. But exporting multiple can
|
15
|
+
cause issues, as browser clients and server runtimes may not sort the export keys
|
16
|
+
the same.
|
17
|
+
|
18
|
+
Be sure to only export a single capitalized non-default export per-route.
|
19
|
+
`);
|
20
|
+
}
|
21
|
+
var nonLoader = keys.find(getPageLikeExports);
|
8
22
|
if (nonLoader)
|
9
23
|
return exported[nonLoader];
|
10
24
|
}();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/utils/Users/n8/one/packages/one/src/utils/getPageExport.ts"],
|
4
|
-
"mappings": "
|
5
|
-
"names": ["getPageExport", "exported", "default", "keys", "Object", "
|
4
|
+
"mappings": "AAAA,IAAMA,qBAAqB,SAACC,GAAAA;SAAcA,MAAM,YAAYA,EAAE,CAAA,EAAGC,YAAW,MAAOD,EAAE,CAAA;GAExEE,gBAAgB,SAACC,UAAAA;AAC5B,SACEA,SAASC;;EAGR,WAAA;AACC,QAAMC,OAAOC,OAAOD,KAAKF,QAAAA;AAEzB,QAAII,QAAQC,IAAIC,aAAa,eAAe;AAC1C,UAAMC,mBAAmBL,KAAKM,OAAOZ,kBAAAA;AACrC,MAAIW,iBAAiBE,SAAS,KAC5BC,QAAQC,KAAK;;;;;;;;;aASV;IAEP;AAEA,QAAMC,YAAYV,KAAKW,KAAKjB,kBAAAA;AAC5B,QAAIgB;AACF,aAAOZ,SAASY,SAAAA;EAEpB,EAAA;AAEJ;",
|
5
|
+
"names": ["getPageLikeExports", "x", "toUpperCase", "getPageExport", "exported", "default", "keys", "Object", "process", "env", "NODE_ENV", "upperCaseExports", "filter", "length", "console", "warn", "nonLoader", "find"]
|
6
6
|
}
|
@@ -154,7 +154,14 @@ ${stack}
|
|
154
154
|
if (!reply)
|
155
155
|
return next();
|
156
156
|
if (typeof reply != "string" && isResponse(reply)) {
|
157
|
-
if (
|
157
|
+
if (reply.headers.forEach((value, key) => {
|
158
|
+
if (key === "set-cookie") {
|
159
|
+
const cookies = value.split(", ");
|
160
|
+
for (const cookie of cookies)
|
161
|
+
res.appendHeader("Set-Cookie", cookie);
|
162
|
+
} else
|
163
|
+
res.setHeader(key, value);
|
164
|
+
}), isStatusRedirect(reply.status)) {
|
158
165
|
const location = `${reply.headers.get("location") || ""}`;
|
159
166
|
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
160
167
|
res.writeHead(reply.status, {
|
@@ -164,14 +171,7 @@ ${stack}
|
|
164
171
|
}
|
165
172
|
console.error("No location provided to redirected status reply", reply);
|
166
173
|
}
|
167
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText
|
168
|
-
if (key === "set-cookie") {
|
169
|
-
const cookies = value.split(", ");
|
170
|
-
for (const cookie of cookies)
|
171
|
-
res.appendHeader("Set-Cookie", cookie);
|
172
|
-
} else
|
173
|
-
res.setHeader(key, value);
|
174
|
-
});
|
174
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
175
175
|
let outString = "";
|
176
176
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
177
177
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAEzB,SAAS,gCAAgC;AAEzC,SAAS,2BAA2B;AAEpC,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAElC,SAAS,qBAAqB,sBAAsB;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;AACzE,QAAM,WAAW,CAAC,iBAAiB,mBAAmB;AAEtD,MAAI,QACA,QAEA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AAS,MAAM;AAAA,EAC3B,CAAC;AACH;",
|
5
5
|
"names": ["route", "url", "loaderProps", "routeFile", "loaderData", "resolve"]
|
6
6
|
}
|
@@ -167,7 +167,12 @@ ${stack}
|
|
167
167
|
const reply = await handleRequest.handler(await convertIncomingMessageToRequest(req));
|
168
168
|
if (!reply) return next();
|
169
169
|
if (typeof reply != "string" && isResponse(reply)) {
|
170
|
-
if (
|
170
|
+
if (reply.headers.forEach((value, key) => {
|
171
|
+
if (key === "set-cookie") {
|
172
|
+
const cookies = value.split(", ");
|
173
|
+
for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
|
174
|
+
} else res.setHeader(key, value);
|
175
|
+
}), isStatusRedirect(reply.status)) {
|
171
176
|
const location = `${reply.headers.get("location") || ""}`;
|
172
177
|
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
173
178
|
res.writeHead(reply.status, {
|
@@ -177,12 +182,7 @@ ${stack}
|
|
177
182
|
}
|
178
183
|
console.error("No location provided to redirected status reply", reply);
|
179
184
|
}
|
180
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText
|
181
|
-
if (key === "set-cookie") {
|
182
|
-
const cookies = value.split(", ");
|
183
|
-
for (const cookie of cookies) res.appendHeader("Set-Cookie", cookie);
|
184
|
-
} else res.setHeader(key, value);
|
185
|
-
});
|
185
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
186
186
|
let outString = "";
|
187
187
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
188
188
|
try {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","location","statusCode","statusMessage","statusText","value","key","cookies","split","cookie","appendHeader","setHeader","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAqB;IAErCC,aAAA,GAAsC;EAE1C,SAASD,qBAAA,EAAuB;IAC9B,OAAOhB,mBAAA,C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pB,IAAA,EAAM,CAAC,QAAQ,OAAO,SAAS,QAAQ,EAAEqB,QAAA,CAAS1D,GAAA,CAAIyD,MAAA,IAAU,EAAE,IAC9D,MAAME,UAAA,CAAW3D,GAAG,IACpB;IACJrD;EACF,CAAC;AACH;AAEA,SAASgH,WAAWlB,MAAA,EAAkD;EACpE,OAAO,IAAImB,OAAA,CAAQ,CAACC,QAAA,EAASC,MAAA,KAAW;IACtC,MAAMC,MAAA,GAAuB,EAAC;IAC9BtB,MAAA,CAAOuB,EAAA,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","value","key","cookies","split","cookie","appendHeader","setHeader","location","statusCode","statusMessage","statusText","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAqB;IAErCC,aAAA,GAAsC;EAE1C,SAASD,qBAAA,EAAuB;IAC9B,OAAOhB,mBAAA,CAAoBW,OAAA,EAAS;MAClC,MAAMO,UAAU;QAAEC,KAAA;QAAOC,GAAA;QAAKC;MAAY,GAAG;QAG3C,IAFAC,OAAA,CAAQC,IAAA,CAAK,aAAQJ,KAAA,CAAMK,IAAI,KAAKJ,GAAG,gBAAgBD,KAAA,CAAMM,IAAI,EAAE,GAE/DN,KAAA,CAAMK,IAAA,KAAS,OAEjB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;QAcLP,aAAA,KACF,MAAMA,aAAA;QAGR,MAAM;UAAES,OAAA;UAASC;Q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A,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
@@ -219,17 +219,7 @@ ${stack}
|
|
219
219
|
if (!reply)
|
220
220
|
return next();
|
221
221
|
if (typeof reply != "string" && isResponse(reply)) {
|
222
|
-
if (
|
223
|
-
var location = `${reply.headers.get("location") || ""}`;
|
224
|
-
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
225
|
-
res.writeHead(reply.status, {
|
226
|
-
Location: location
|
227
|
-
}), res.end();
|
228
|
-
return;
|
229
|
-
}
|
230
|
-
console.error("No location provided to redirected status reply", reply);
|
231
|
-
}
|
232
|
-
res.statusCode = reply.status, res.statusMessage = reply.statusText, reply.headers.forEach(function(value, key) {
|
222
|
+
if (reply.headers.forEach(function(value, key) {
|
233
223
|
if (key === "set-cookie") {
|
234
224
|
var cookies = value.split(", "), _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
235
225
|
try {
|
@@ -249,7 +239,17 @@ ${stack}
|
|
249
239
|
}
|
250
240
|
} else
|
251
241
|
res.setHeader(key, value);
|
252
|
-
})
|
242
|
+
}), isStatusRedirect(reply.status)) {
|
243
|
+
var location = `${reply.headers.get("location") || ""}`;
|
244
|
+
if (console.info(` \u21A6 Redirect ${location}`), location) {
|
245
|
+
res.writeHead(reply.status, {
|
246
|
+
Location: location
|
247
|
+
}), res.end();
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
console.error("No location provided to redirected status reply", reply);
|
251
|
+
}
|
252
|
+
res.statusCode = reply.status, res.statusMessage = reply.statusText;
|
253
253
|
var outString = "";
|
254
254
|
reply.body && reply.body.locked && console.warn("Body is locked??");
|
255
255
|
try {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
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AAY,MAAM,KAAK;sBAAEC,UAAUN;oBAAY,CAAA,GACtEZ,IAAImB,IAAG,GACP;;oBAAK;kBACP;gBACF,GApBK,YAAkBjB,UAAAA,OAAAA,QAAAA,EAAAA,GAAlB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAA;;;;;AAAA,oCAAA,IAAA,iBAAA;;;mBAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;sBAAA;0BAAA;;;YAqBP;AAEA,gBAAMkB,QAAQ,MAAMxG,cAAcyG,QAAQ,MAAMC,gCAAgCvB,GAAAA,CAAAA;AAEhF,gBAAI,CAACqB;AACH,qBAAOnB,KAAAA;AAGT,gBAAI,OAAOmB,SAAU,YAAYtH,WAAWsH,KAAAA,GAAQ;
|
5
|
-
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,uBAAuB;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAElC,SAASC,qBAAqBC,sBAAsB;;;;;AAGpD,IAAMC,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;AAC/D,MAAMC,WAAW;IAAC;IAAiBL;KAE/BM,QACAC,QAEAC,gBAAgBC,qBAAAA,GAEhBC,gBAAsC;AAE1C,WAASD,uBAAAA;AACP,WAAOhB,oBAAoBW,SAAS;MAClC,MAAMO,UAAU,OAA2B;YAA3B,EAAEC,OAAOC,KAAKC,YAAW,IAAzB;AAGd,YAFAC,QAAQC,KAAK,aAAQJ,MAAMK,IAAI,KAAKJ,GAAAA,gBAAmBD,MAAMM,IAAI,EAAE,GAE/DN,MAAMK,SAAS;AAEjB,iBAAO;;;;;;;;;;;;AAcT,QAAIP,iBACF,MAAMA;AAGR,YAAM,EAAES,SAASC,QAAO,IAAKxB,qBAAAA;AAC7Bc,wBAAgBS;AAEhB,YAAI;cAIFE,8BAAAA,aAGyBC,kBANnBC,YAAYjC,KAAK,OAAOsB,MAAMM,IAAI;AACxCZ,iBAAOkB,WAAU,IAEjBH,gCAAAA,cAAAA,YAAW,sBAAmB,QAA9BA,iCAAAA,UAAAA,6BAAAA,KAAAA,WAAAA;AAEA,cAAMC,WAAWC,cAAc,KAAK,CAAC,IAAI,MAAMjB,OAAOmB,OAAOF,SAAAA,GACvDG,aAAa,QAAMJ,mBAAAA,SAASK,YAAM,QAAfL,qBAAAA,SAAAA,SAAAA,iBAAAA,KAAAA,UAAkBR,WAAAA;AAG3Cc,eAAK,qCAAqC;AAE1C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,KAAAA;EAC7C,UAAA;AACEiG,WAAOO,YAAW;EACpB;AAEA,SAAOnF;AACT;AAEA,IAAMqD,kCAAkC,eAAOvB,KAAAA;AAC7C,MAAI,CAACA,IAAIsD;AACP,UAAM,IAAIrG,MAAM,eAAe;AAGjC,MAAMsG,UAAU,UAAUvD,IAAIrD,QAAQ2D,IAAI,IACpCkD,YAAYxD,IAAIsD,eAAe,IAC/BpI,OAAM,IAAImF,IAAImD,WAAWD,OAAAA,GAEzB5G,UAAU,IAAI8G,QAAAA;AACpB,WAAWhC,OAAOzB,IAAIrD;AACpB,IAAIqD,IAAIrD,QAAQ8E,GAAAA,KAAM9E,QAAQ+G,OAAOjC,KAAKzB,IAAIrD,QAAQ8E,GAAAA,CAAI;AAG5D,SAAO,IAAIkC,QAAQzI,MAAK;IACtB0I,QAAQ5D,IAAI4D;IACZnB,MAAM;MAAC;MAAQ;MAAO;MAAS;MAAUoB,SAAS7D,IAAI4D,UAAU,EAAA,IAC5D,MAAME,WAAW9D,GAAAA,IACjB;IACJrD;EACF,CAAA;AACF;AAEA,SAASmH,WAAWjB,QAA+B;AACjD,SAAO,IAAIkB,QAAQ,SAACtI,UAASuI,QAAAA;AAC3B,QAAMC,SAAuB,CAAA;AAC7BpB,WAAOqB,GAAG,QAAQ,SAACC,OAAAA;aAAsBF,OAAOG,KAAKD,KAAAA;QACrDtB,OAAOqB,GAAG,OAAO,WAAA;aAAMzI,SAAQ4I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
|
+
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "location", "statusCode", "statusMessage", "statusText", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
6
6
|
}
|
package/dist/esm/vite/one.js
CHANGED
@@ -3,7 +3,13 @@ import events from "node:events";
|
|
3
3
|
import path, { dirname, resolve } from "node:path";
|
4
4
|
import { loadConfigFromFile } from "vite";
|
5
5
|
import tsconfigPaths from "vite-tsconfig-paths";
|
6
|
-
import {
|
6
|
+
import {
|
7
|
+
autoPreBundleDepsForSsrPlugin,
|
8
|
+
getOptimizeDeps,
|
9
|
+
getOptionsFilled,
|
10
|
+
isWebEnvironment,
|
11
|
+
loadEnv
|
12
|
+
} from "vxrn";
|
7
13
|
import { CACHE_KEY } from "../constants";
|
8
14
|
import "../polyfills-server";
|
9
15
|
import { existsAsync } from "../utils/existsAsync";
|
@@ -33,6 +39,11 @@ function one(options = {}) {
|
|
33
39
|
};
|
34
40
|
}
|
35
41
|
},
|
42
|
+
...options.ssr?.disableAutoDepsPreBundling ? [] : [
|
43
|
+
autoPreBundleDepsForSsrPlugin({
|
44
|
+
root: vxrnOptions?.root || process.cwd()
|
45
|
+
})
|
46
|
+
],
|
36
47
|
// proxy because you cant add a plugin inside a plugin
|
37
48
|
new Proxy(
|
38
49
|
{
|
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,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAC1B,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AAEvC,SAAS,oBAAoB,sBAAsB;AACnD,SAAS,wBAAwB;AAEjC,OAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SAAS,IAAI,UAA6B,CAAC,GAAiB;AACjE,eAAa,SAGT,QAAQ,QAAQ,mBAAmB,MAChC,eAAe,GAGtB,WAAW,uBAA0B;AAGrC,QAAM,EAAE,aAAa,IAAI,gBAAgB,OAAO,GAC1C,cAAc,aAAa,SAC3B,kBAAkB,IAAI;AAAA;AAAA;AAAA,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A4B;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
@@ -3,7 +3,7 @@ import events from "node:events";
|
|
3
3
|
import path, { dirname, resolve } from "node:path";
|
4
4
|
import { loadConfigFromFile } from "vite";
|
5
5
|
import tsconfigPaths from "vite-tsconfig-paths";
|
6
|
-
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
|
6
|
+
import { autoPreBundleDepsForSsrPlugin, getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
|
7
7
|
import { CACHE_KEY } from "../constants.mjs";
|
8
8
|
import "../polyfills-server.mjs";
|
9
9
|
import { existsAsync } from "../utils/existsAsync.mjs";
|
@@ -38,7 +38,9 @@ function one(options = {}) {
|
|
38
38
|
define: clientEnvDefine
|
39
39
|
};
|
40
40
|
}
|
41
|
-
},
|
41
|
+
}, ...(options.ssr?.disableAutoDepsPreBundling ? [] : [autoPreBundleDepsForSsrPlugin({
|
42
|
+
root: vxrnOptions?.root || process.cwd()
|
43
|
+
})]),
|
42
44
|
// proxy because you cant add a plugin inside a plugin
|
43
45
|
new Proxy({
|
44
46
|
name: "one:tsconfig-paths",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","web","defaultRenderMode","JSON","stringify","setupFile","
|
1
|
+
{"version":3,"names":["resolvePath","events","path","dirname","resolve","loadConfigFromFile","tsconfigPaths","autoPreBundleDepsForSsrPlugin","getOptimizeDeps","getOptionsFilled","isWebEnvironment","loadEnv","CACHE_KEY","existsAsync","clientTreeShakePlugin","createFileSystemRouter","ensureTSConfig","fixDependenciesPlugin","generateTypesForRoutes","createVirtualEntry","virtualEntryId","vitePluginSsrCss","setMaxListeners","globalThis","__vxrnEnableNativeEnv","one","options","oneOptions","config","__vxrnPluginConfig__","optimizeDeps","optimizeIds","include","optimizeIdRegex","RegExp","map","id","replace","join","tsConfigPathsPlugin","vxrnOptions","clientEnvDefine","mode","devAndProdPlugins","name","define","ssr","disableAutoDepsPreBundling","root","process","cwd","Proxy","configIncoming","pathsConfig","tsConfigPaths","plugins","flat","some","p","configResolved","resolveId","get","target","key","thisArg","Reflect","enforce","alias","tslib","web","defaultRenderMode","JSON","stringify","setupFile","env","NODE_ENV","server","url","environments","client","ios","android","zero","TESTING","REPLICACHE_VERSION","ZERO_VERSION","hotUpdate","modules","m","relative","split","sep","acceptedHmrExports","Set","__vxrnAddNativePlugins","__vxrnAddWebPluginsProd","deps","app","sharedNativeConfig","react","applyToEnvironment","environment","importer","test","absolutePath","webPath","directoryPath","err","console","warn","entries","getUserOneOptions","command","Error","loadUserOneOptions","foundOptions"],"sources":["../../../src/vite/one.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,OAAOC,MAAA,MAAY;AACnB,OAAOC,IAAA,IAAQC,OAAA,EAASC,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