one 1.1.311 → 1.1.313
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/cleanUrl.cjs +3 -8
- package/dist/cjs/cleanUrl.cjs.map +2 -2
- package/dist/cjs/cleanUrl.native.js +5 -8
- package/dist/cjs/cleanUrl.native.js.map +2 -2
- package/dist/cjs/cli.cjs +0 -2
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/cli.native.js +1 -2
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/config.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants.cjs +9 -1
- package/dist/cjs/constants.cjs.map +1 -1
- package/dist/cjs/constants.native.js +9 -1
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/cjs/createApp.native.cjs +1 -1
- package/dist/cjs/createApp.native.js +1 -1
- package/dist/cjs/createApp.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.cjs +2 -1
- package/dist/cjs/createHandleRequest.cjs.map +1 -1
- package/dist/cjs/createHandleRequest.native.js +2 -2
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- package/dist/cjs/matchers.cjs +1 -1
- package/dist/cjs/matchers.cjs.map +1 -1
- package/dist/cjs/matchers.native.js +1 -1
- package/dist/cjs/matchers.native.js.map +1 -1
- package/dist/cjs/serve.cjs +36 -22
- package/dist/cjs/serve.cjs.map +2 -2
- package/dist/cjs/serve.native.js +18 -19
- package/dist/cjs/serve.native.js.map +2 -2
- package/dist/cjs/useLoader.cjs +1 -1
- package/dist/cjs/useLoader.native.js +1 -1
- package/dist/cjs/vite/build.cjs +8 -4
- package/dist/cjs/vite/build.cjs.map +1 -1
- package/dist/cjs/vite/build.native.js +5 -2
- package/dist/cjs/vite/build.native.js.map +2 -2
- package/dist/cjs/vite/clientTreeShakePlugin.cjs +1 -1
- package/dist/cjs/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/cjs/vite/createFileSystemRouter.cjs +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
- package/dist/cjs/vite/one.cjs +43 -14
- package/dist/cjs/vite/one.cjs.map +1 -1
- package/dist/cjs/vite/one.native.js +39 -12
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/cjs/vite/virtualEntryPlugin.cjs +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.cjs +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.native.js +1 -1
- package/dist/esm/cleanUrl.js +10 -9
- package/dist/esm/cleanUrl.js.map +1 -1
- package/dist/esm/cleanUrl.mjs +4 -9
- package/dist/esm/cleanUrl.mjs.map +1 -1
- package/dist/esm/cleanUrl.native.js +5 -9
- package/dist/esm/cleanUrl.native.js.map +2 -2
- package/dist/esm/cli.js +0 -2
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +0 -2
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +0 -2
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/config.js +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants.js +5 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +6 -2
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +5 -1
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/createApp.native.js +1 -1
- package/dist/esm/createApp.native.js.map +1 -1
- package/dist/esm/createHandleRequest.js +2 -1
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +2 -1
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +2 -1
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/matchers.js +1 -1
- package/dist/esm/matchers.js.map +1 -1
- package/dist/esm/matchers.mjs +1 -1
- package/dist/esm/matchers.mjs.map +1 -1
- package/dist/esm/matchers.native.js +1 -1
- package/dist/esm/matchers.native.js.map +1 -1
- package/dist/esm/serve.js +12 -15
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +30 -16
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +13 -21
- package/dist/esm/serve.native.js.map +2 -2
- package/dist/esm/useLoader.js +1 -1
- package/dist/esm/useLoader.mjs +1 -1
- package/dist/esm/useLoader.native.js +1 -1
- package/dist/esm/vite/build.js +4 -2
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +6 -2
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +6 -2
- package/dist/esm/vite/build.native.js.map +2 -2
- package/dist/esm/vite/clientTreeShakePlugin.js +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.mjs +1 -1
- package/dist/esm/vite/clientTreeShakePlugin.native.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.js +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +1 -1
- package/dist/esm/vite/one.js +43 -14
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +43 -14
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +41 -14
- package/dist/esm/vite/one.native.js.map +2 -2
- package/dist/esm/vite/virtualEntryPlugin.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs +5 -5
- package/dist/esm/vite/virtualEntryPlugin.mjs.map +1 -1
- package/dist/esm/vite/virtualEntryPlugin.native.js +5 -5
- package/dist/esm/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/esm/vite/vitePluginSsrCss.js +1 -1
- package/dist/esm/vite/vitePluginSsrCss.mjs +1 -1
- package/dist/esm/vite/vitePluginSsrCss.native.js +1 -1
- package/package.json +8 -8
- package/src/cleanUrl.ts +10 -14
- package/src/cli.ts +0 -3
- package/src/config.ts +1 -1
- package/src/constants.ts +6 -0
- package/src/createApp.native.tsx +2 -2
- package/src/createHandleRequest.ts +2 -1
- package/src/matchers.ts +1 -1
- package/src/serve.ts +31 -16
- package/src/useLoader.ts +1 -1
- package/src/vite/build.ts +4 -1
- package/src/vite/clientTreeShakePlugin.ts +1 -1
- package/src/vite/createFileSystemRouter.tsx +1 -1
- package/src/vite/one.ts +44 -11
- package/src/vite/types.ts +5 -1
- package/src/vite/virtualEntryPlugin.ts +5 -5
- package/src/vite/vitePluginSsrCss.ts +1 -1
- package/types/cleanUrl.d.ts.map +1 -1
- package/types/constants.d.ts +4 -0
- package/types/constants.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
- package/types/vite/one.d.ts.map +1 -1
- package/types/vite/types.d.ts +5 -1
- package/types/vite/types.d.ts.map +1 -1
- package/dist/cjs/router/constants.cjs +0 -26
- package/dist/cjs/router/constants.cjs.map +0 -6
- package/dist/cjs/router/constants.native.js +0 -26
- package/dist/cjs/router/constants.native.js.map +0 -6
- package/dist/cjs/vite/loadEnv.cjs +0 -47
- package/dist/cjs/vite/loadEnv.cjs.map +0 -6
- package/dist/cjs/vite/loadEnv.native.js +0 -44
- package/dist/cjs/vite/loadEnv.native.js.map +0 -6
- package/dist/esm/router/constants.js +0 -5
- package/dist/esm/router/constants.js.map +0 -6
- package/dist/esm/router/constants.mjs +0 -3
- package/dist/esm/router/constants.mjs.map +0 -1
- package/dist/esm/router/constants.native.js +0 -5
- package/dist/esm/router/constants.native.js.map +0 -6
- package/dist/esm/vite/loadEnv.js +0 -13
- package/dist/esm/vite/loadEnv.js.map +0 -6
- package/dist/esm/vite/loadEnv.mjs +0 -13
- package/dist/esm/vite/loadEnv.mjs.map +0 -1
- package/dist/esm/vite/loadEnv.native.js +0 -16
- package/dist/esm/vite/loadEnv.native.js.map +0 -6
- package/src/router/constants.ts +0 -4
- package/src/vite/loadEnv.ts +0 -11
- package/types/router/constants.d.ts +0 -2
- package/types/router/constants.d.ts.map +0 -1
- package/types/vite/loadEnv.d.ts +0 -2
- package/types/vite/loadEnv.d.ts.map +0 -1
package/dist/esm/useLoader.js
CHANGED
@@ -37,7 +37,7 @@ function useLoader(loader) {
|
|
37
37
|
try {
|
38
38
|
const response = await (async () => {
|
39
39
|
if (isNative) {
|
40
|
-
const nativeLoaderJSUrl = `${loaderJSUrl}
|
40
|
+
const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
41
41
|
try {
|
42
42
|
const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
43
43
|
if (!loaderJsCodeResp.ok)
|
package/dist/esm/useLoader.mjs
CHANGED
@@ -43,7 +43,7 @@ function useLoader(loader) {
|
|
43
43
|
try {
|
44
44
|
const response = await (async () => {
|
45
45
|
if (isNative) {
|
46
|
-
const nativeLoaderJSUrl = `${loaderJSUrl}
|
46
|
+
const nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
47
47
|
try {
|
48
48
|
const loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
49
49
|
if (!loaderJsCodeResp.ok) throw new Error(`Response not ok: ${loaderJsCodeResp.status}`);
|
@@ -43,7 +43,7 @@ function useLoader(loader) {
|
|
43
43
|
try {
|
44
44
|
var response = await async function() {
|
45
45
|
if (isNative) {
|
46
|
-
var nativeLoaderJSUrl = `${loaderJSUrl}
|
46
|
+
var nativeLoaderJSUrl = `${loaderJSUrl}?platform=ios`;
|
47
47
|
try {
|
48
48
|
var loaderJsCodeResp = await fetch(nativeLoaderJSUrl);
|
49
49
|
if (!loaderJsCodeResp.ok)
|
package/dist/esm/vite/build.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as constants from "../constants";
|
1
2
|
import FSExtra from "fs-extra";
|
2
3
|
import MicroMatch from "micromatch";
|
3
4
|
import { createRequire } from "node:module";
|
@@ -11,10 +12,10 @@ import {
|
|
11
12
|
build as vxrnBuild
|
12
13
|
} from "vxrn";
|
13
14
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl";
|
15
|
+
import { labelProcess } from "../cli/label-process";
|
14
16
|
import { getManifest } from "./getManifest";
|
15
17
|
import { loadUserOneOptions } from "./one";
|
16
18
|
import { replaceLoader } from "./replaceLoader";
|
17
|
-
import { labelProcess } from "../cli/label-process";
|
18
19
|
const { ensureDir, readFile, outputFile } = FSExtra;
|
19
20
|
process.on("uncaughtException", (err) => {
|
20
21
|
console.error(err?.message || err);
|
@@ -291,7 +292,8 @@ ${JSON.stringify(params || null, null, 2)}`
|
|
291
292
|
await moveAllFiles(staticDir, clientDir), await FSExtra.rm(staticDir, { force: !0, recursive: !0 });
|
292
293
|
const buildInfoForWriting = {
|
293
294
|
routeMap: builtRoutes.reduce((acc, { cleanPath, htmlPath }) => (acc[cleanPath] = htmlPath, acc), {}),
|
294
|
-
builtRoutes
|
295
|
+
builtRoutes,
|
296
|
+
constants: JSON.parse(JSON.stringify({ ...constants }))
|
295
297
|
}, buildInfo = {
|
296
298
|
...buildInfoForWriting,
|
297
299
|
...vxrnOutput
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/build.ts"],
|
4
|
-
"mappings": "AAAA,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAS,qBAAqB;AAC9B,OAAO,QAAQ,MAAM,gBAAgB;AAErC,SAAS,qBAAqB;AAC9B,SAAS,aAAa,SAAS,iBAAoC;AACnE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,OAEJ;AACP,SAAS,eAAe,sBAAsB;
|
4
|
+
"mappings": "AAAA,YAAY,eAAe;AAC3B,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,SAAS,qBAAqB;AAC9B,OAAO,QAAQ,M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O;AACV,cAAI;AACF,kBAAM,IAAI;AAAA,cACR;AAAA;AAAA,0BAEU,IAAI;AAAA,0BACJ,IAAI;AAAA,8BACA,QAAQ;AAAA;AAAA;AAAA,IAGlC,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AAAA,YACrB;AAGF,iBAAO,MAAM,KAAK,QAAQ,KAAK,EAAE,EAAE,QAAQ,KAAK,EAAE;AAAA,QACpD;AACA,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT,CAAC,EACA,KAAK,GAAG,CAAC;AAAA,EACd,GAAG;AAEH,SAAO,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,WAAW,GAAG;AAC7D;AAEA,SAAS,YAAY,QAAgB;AACnC,SAAO,OAAO,QAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS,wBAAwB,MAAgB;AAM/C,QAAM,eAAe,oBAJC,KAAK,IAAI,CAAC,QAAQ,YAAY,GAAG,CAAC,EAEjB,KAAK,GAAG,CAEU;AACzD,SAAO,IAAI,OAAO,YAAY;AAChC;",
|
5
5
|
"names": ["file"]
|
6
6
|
}
|
package/dist/esm/vite/build.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as constants from "../constants.mjs";
|
1
2
|
import FSExtra from "fs-extra";
|
2
3
|
import MicroMatch from "micromatch";
|
3
4
|
import { createRequire } from "node:module";
|
@@ -6,10 +7,10 @@ import { nodeExternals } from "rollup-plugin-node-externals";
|
|
6
7
|
import { mergeConfig, build as viteBuild } from "vite";
|
7
8
|
import { fillOptions, getOptimizeDeps, rollupRemoveUnusedImportsPlugin, build as vxrnBuild } from "vxrn";
|
8
9
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl.mjs";
|
10
|
+
import { labelProcess } from "../cli/label-process.mjs";
|
9
11
|
import { getManifest } from "./getManifest.mjs";
|
10
12
|
import { loadUserOneOptions } from "./one.mjs";
|
11
13
|
import { replaceLoader } from "./replaceLoader.mjs";
|
12
|
-
import { labelProcess } from "../cli/label-process.mjs";
|
13
14
|
const {
|
14
15
|
ensureDir,
|
15
16
|
readFile,
|
@@ -316,7 +317,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
316
317
|
cleanPath,
|
317
318
|
htmlPath
|
318
319
|
}) => (acc[cleanPath] = htmlPath, acc), {}),
|
319
|
-
builtRoutes
|
320
|
+
builtRoutes,
|
321
|
+
constants: JSON.parse(JSON.stringify({
|
322
|
+
...constants
|
323
|
+
}))
|
320
324
|
},
|
321
325
|
buildInfo = {
|
322
326
|
...buildInfoForWriting,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","labelProcess","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","html","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IAAA,IAAQC,IAAA,EAAMC,QAAA,QAAgB;AAErC,SAASC,aAAA,QAAqB;AAC9B,SAASC,WAAA,EAAaC,KAAA,IAASC,SAAA,QAAoC;AACnE,SACEC,WAAA,EACAC,eAAA,EACAC,+BAAA,EACAJ,KAAA,IAASK,SAAA,QAEJ;AACP,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAG9C,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAE9B,SAASC,YAAA,QAAoB;AAE7B,MAAM;EAAEC,SAAA;EAAWC,QAAA;EAAUC;AAAW,IAAItB,OAAA;AAE5CuB,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBjB,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GAAG2J,IAAA,CAAK7K,MAAA,GAAS,CAAC,CAAC;UACnD,IAAI,CAACgF,KAAA,EAAO;YACV,IAAI2F,MAAA,EACF,MAAM,IAAI/C,KAAA,CACR;AAAA;AAAA,0BAEUP,IAAI;AAAA,0BACJwD,IAAI;AAAA,8BACAnD,QAAQ;AAAA;AAAA;AAAA,IAGlCjH,IAAA,CAAKC,SAAA,CAAUsH,MAAA,EAAQ,MAAM,CAAC,CAAC,EACrB;YAGF,OAAO,MAAM6C,IAAA,CAAKhI,OAAA,CAAQ,KAAK,EAAE,EAAEA,OAAA,CAAQ,KAAK,EAAE;UACpD;UACA,OAAOmC,KAAA;QACT;QACA,OAAO6F,IAAA;MACT,CAAC,EACA7N,IAAA,CAAK,GAAG,CAAC;IACd,GAAG;EAEH,OAAO,GAAGgG,OAAO,GAAG4H,cAAc,GAAG/H,OAAA,CAAQ,WAAW,GAAG;AAC7D;AAEA,SAASkI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOnI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAASjC,wBAAwBqK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK3K,GAAA,CAAK6K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjBnO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIoO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["constants","FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","rollupRemoveUnusedImportsPlugin","vxrnBuild","getLoaderPath","getPreloadPath","labelProcess","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","userOptions","serverOutputFormat","server","outputFormat","env","VXRN_REACT_19","ONE_SERVER_URL","warn","vxrnOutput","analyze","options","toAbsolute","p","resolve","root","manifest","optimizeDeps","apiBuildConfig","webBuildConfig","configFile","appType","apiRoutes","length","info","processEnvDefines","Object","fromEntries","entries","map","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","apiOutputFormat","api","treeshake","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","moduleSideEffects","filter","Boolean","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","index","collectImports","imports","css","type","Set","flatMap","found","clientManifest","flat","x","endsWith","startsWith","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","find","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","entryImports","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","paramsList","params","cleanId","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","code","withLoader","loaderPartialPath","html","errMsg","moveAllFiles","rm","force","recursive","buildInfoForWriting","routeMap","acc","parse","buildInfo","writeJSON","postBuildLogs","web","deploy","platform","afterBuild","VXRN_ANALYZE_BUNDLE","forEach","log","src","dest","copy","overwrite","errorOnExist","strict","nameWithParams","part","split","escapeRegex","string","deps","regexPattern","dep","RegExp"],"sources":["../../../src/vite/build.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,SAAA,MAAe;AAC3B,OAAOC,OAAA,MAAa;AACpB,OAAOC,UAAA,MAAgB;AACvB,SAASC,aAAA,QAAqB;AAC9B,OAAOC,IA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AEA,SAASmI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOpI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAASjC,wBAAwBsK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK5K,GAAA,CAAK8K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjBpO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIqO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as constants from "../constants";
|
1
2
|
import FSExtra from "fs-extra";
|
2
3
|
import MicroMatch from "micromatch";
|
3
4
|
import { createRequire } from "node:module";
|
@@ -6,10 +7,10 @@ import { nodeExternals } from "rollup-plugin-node-externals";
|
|
6
7
|
import { mergeConfig, build as viteBuild } from "vite";
|
7
8
|
import { fillOptions, getOptimizeDeps, rollupRemoveUnusedImportsPlugin, build as vxrnBuild } from "vxrn";
|
8
9
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl";
|
10
|
+
import { labelProcess } from "../cli/label-process";
|
9
11
|
import { getManifest } from "./getManifest";
|
10
12
|
import { loadUserOneOptions } from "./one";
|
11
13
|
import { replaceLoader } from "./replaceLoader";
|
12
|
-
import { labelProcess } from "../cli/label-process";
|
13
14
|
var { ensureDir, readFile, outputFile } = FSExtra;
|
14
15
|
process.on("uncaughtException", function(err) {
|
15
16
|
console.error(err?.message || err);
|
@@ -360,7 +361,10 @@ ${JSON.stringify(params || null, null, 2)}`), console.error(err), process.exit(1
|
|
360
361
|
return acc[cleanPath] = htmlPath, acc;
|
361
362
|
}, {}), buildInfoForWriting = {
|
362
363
|
routeMap,
|
363
|
-
builtRoutes
|
364
|
+
builtRoutes,
|
365
|
+
constants: JSON.parse(JSON.stringify({
|
366
|
+
...constants
|
367
|
+
}))
|
364
368
|
}, buildInfo = {
|
365
369
|
...buildInfoForWriting,
|
366
370
|
...vxrnOutput
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GAAGyJ,MAAK3K,SAAS,CAAA,CAAA;AACjD,YAAI,CAACkG,OAAO;AACV,cAAIuE;AACF,kBAAM,IAAIlD,MACR;;0BAEUN,IAAAA;0BACA0D,KAAAA;8BACIrD,QAAAA;;;IAG1B7G,KAAKC,UAAUqH,QAAQ,MAAM,CAAA,CAAA,EAAI;AAIzB,iBAAO,MAAM4C,MAAK9H,QAAQ,KAAK,EAAA,EAAIA,QAAQ,KAAK,EAAA;QAClD;AACA,eAAOqD;MACT;AACA,aAAOyE;IACT,CAAA,EACC3N,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGgG,OAAAA,GAAU0H,cAAAA,GAAiB7H,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASgI,YAAYC,QAAc;AACjC,SAAOA,OAAOjI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASjC,wBAAwBmK,MAAc;AAE7C,MAAMC,gBAAgBD,KAAKzK,IAAI,SAAC2K,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAchO,KAAK,GAAA,GAEtCmO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
-
"names": ["FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "
|
4
|
+
"mappings": "AAAA,YAAYA,eAAe;AAC3B,OAAOC,aAAa;AACpB,OAAOC,gBAAgB;AACvB,SAASC,qBAAqB;AAC9B,OAAOC,QAAQC,MAAMC,gBAAgB;AAErC,SAASC,qBAAqB;AAC9B,SAASC,aAAaC,SAASC,iBAAoC;AACnE,SACEC,aACAC,iBACAC,iCACAJ,SAASK,iBAEJ;AACP,SAASC,eAAeC,sBAAsB;AAC9C,SAASC,oBAAoB;AAG7B,SAASC,mBAAmB;AAC5B,SAASC,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N,KAAK,GAAA,CAAA;EACV,EAAA;AAEA,SAAO,GAAGgG,OAAAA,GAAU2H,cAAAA,GAAiB9H,QAAQ,WAAW,GAAA;AAC1D;AAEA,SAASiI,YAAYC,QAAc;AACjC,SAAOA,OAAOlI,QAAQ,uBAAuB,MAAA;AAC/C;AAEA,SAASjC,wBAAwBoK,MAAc;AAE7C,MAAMC,gBAAgBD,KAAK1K,IAAI,SAAC4K,KAAAA;WAAQJ,YAAYI,GAAAA;MAE9CC,mBAAmBF,cAAcjO,KAAK,GAAA,GAEtCoO,eAAe,oBAAoBD,gBAAAA;AACzC,SAAO,IAAIE,OAAOD,YAAAA;AACpB;",
|
5
|
+
"names": ["constants", "FSExtra", "MicroMatch", "createRequire", "Path", "join", "relative", "nodeExternals", "mergeConfig", "build", "viteBuild", "fillOptions", "getOptimizeDeps", "rollupRemoveUnusedImportsPlugin", "vxrnBuild", "getLoaderPath", "getPreloadPath", "labelProcess", "getManifest", "loadUserOneOptions", "replaceLoader", "ensureDir", "readFile", "outputFile", "process", "on", "err", "console", "error", "message", "args", "userOptions", "options", "serverOutputFormat", "server", "outputFormat", "env", "VXRN_REACT_19", "ONE_SERVER_URL", "warn", "vxrnOutput", "analyze", "toAbsolute", "p", "resolve", "root", "manifest", "optimizeDeps", "apiBuildConfig", "webBuildConfig", "configFile", "appType", "apiRoutes", "length", "info", "processEnvDefines", "Object", "fromEntries", "entries", "map", "key", "value", "JSON", "stringify", "apiRouteExternalRegex", "buildRegexExcludingDeps", "include", "apiEntryPoints", "reduce", "page", "file", "slice", "apiOutputFormat", "api", "treeshake", "plugins", "exclude", "define", "ssr", "noExternal", "external", "emptyOutDir", "outDir", "copyPublicDir", "minify", "rollupOptions", "moduleSideEffects", "filter", "Boolean", "preserveEntrySignatures", "input", "output", "entryFileNames", "exports", "format", "esModule", "chunkInfo", "name", "replace", "chunkFileNames", "dir", "dirname", "basename", "extname", "assetFileNames", "assetInfo", "baseName", "ext", "globalThis", "url", "assets", "builtRoutes", "render", "entryServer", "serverEntry", "serverImport", "default", "exit", "staticDir", "clientDir", "outputEntries", "serverOutput", "index", "foundRoute", "exported", "type", "push", "id", "facadeModuleId", "includes", "relativeId", "cwd", "onlyBuild", "buildArgs", "only", "contains", "clientManifestKey", "keys", "clientManifest", "find", "endsWith", "clientManifestEntry", "findMatchingRoute", "route", "pageRoutes", "startsWith", "collectImports", "imports", "css", "Set", "flatMap", "found", "flat", "x", "entryImports", "layoutEntries", "layouts", "layout", "clientKey", "contextKey", "layoutImports", "entry", "preloadSetupFilePreloads", "setupFile", "needle", "preloads", "path", "allEntries", "allCSS", "DEBUG", "serverJsPath", "fileName", "Error", "cause", "generateStaticParams", "paramsList", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "params", "cleanId", "getPathnameFromFilePath", "htmlPath", "removeTrailingSlash", "clientJsPath", "htmlOutPath", "loaderData", "cleanPath", "preloadPath", "writeFile", "preload", "loaderProps", "loader", "code", "withLoader", "loaderPartialPath", "html", "errMsg", "stack", "moveAllFiles", "rm", "force", "recursive", "routeMap", "acc", "buildInfoForWriting", "parse", "buildInfo", "writeJSON", "postBuildLogs", "platform", "web", "deploy", "afterBuild", "VXRN_ANALYZE_BUNDLE", "forEach", "log", "src", "dest", "copy", "overwrite", "errorOnExist", "strict", "nameWithParams", "part", "split", "escapeRegex", "string", "deps", "sanitizedDeps", "dep", "exclusionPattern", "regexPattern", "RegExp"]
|
6
6
|
}
|
@@ -4,7 +4,7 @@ import BabelTraverse from "@babel/traverse";
|
|
4
4
|
import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-elimination";
|
5
5
|
import { EMPTY_LOADER_STRING } from "./constants";
|
6
6
|
const traverse = BabelTraverse.default, generate = BabelGenerate.default, clientTreeShakePlugin = () => ({
|
7
|
-
name: "one
|
7
|
+
name: "one-client-tree-shake",
|
8
8
|
enforce: "pre",
|
9
9
|
applyToEnvironment(env) {
|
10
10
|
return env.name === "client" || env.name === "ios" || env.name === "android";
|
@@ -6,7 +6,7 @@ import { EMPTY_LOADER_STRING } from "./constants.mjs";
|
|
6
6
|
const traverse = BabelTraverse.default,
|
7
7
|
generate = BabelGenerate.default,
|
8
8
|
clientTreeShakePlugin = () => ({
|
9
|
-
name: "one
|
9
|
+
name: "one-client-tree-shake",
|
10
10
|
enforce: "pre",
|
11
11
|
applyToEnvironment(env) {
|
12
12
|
return env.name === "client" || env.name === "ios" || env.name === "android";
|
@@ -5,7 +5,7 @@ import { deadCodeElimination, findReferencedIdentifiers } from "babel-dead-code-
|
|
5
5
|
import { EMPTY_LOADER_STRING } from "./constants";
|
6
6
|
var traverse = BabelTraverse.default, generate = BabelGenerate.default, clientTreeShakePlugin = function() {
|
7
7
|
return {
|
8
|
-
name: "one
|
8
|
+
name: "one-client-tree-shake",
|
9
9
|
enforce: "pre",
|
10
10
|
applyToEnvironment(env) {
|
11
11
|
return env.name === "client" || env.name === "ios" || env.name === "android";
|
package/dist/esm/vite/one.js
CHANGED
@@ -1,30 +1,38 @@
|
|
1
|
+
import { resolvePath } from "@vxrn/resolve";
|
1
2
|
import events from "node:events";
|
2
3
|
import path, { dirname, resolve } from "node:path";
|
3
4
|
import { loadConfigFromFile } from "vite";
|
4
5
|
import tsconfigPaths from "vite-tsconfig-paths";
|
5
|
-
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment } from "vxrn";
|
6
|
+
import { getOptimizeDeps, getOptionsFilled, isWebEnvironment, loadEnv } from "vxrn";
|
7
|
+
import { CACHE_KEY } from "../constants";
|
6
8
|
import "../polyfills-server";
|
7
9
|
import { existsAsync } from "../utils/existsAsync";
|
8
|
-
import { resolvePath } from "@vxrn/resolve";
|
9
10
|
import { clientTreeShakePlugin } from "./clientTreeShakePlugin";
|
10
11
|
import { createFileSystemRouter } from "./createFileSystemRouter";
|
11
12
|
import { ensureTSConfig } from "./ensureTsConfig";
|
12
13
|
import { fixDependenciesPlugin } from "./fixDependenciesPlugin";
|
13
14
|
import { generateTypesForRoutes } from "./generateTypesForRoutes";
|
14
|
-
import { loadEnv } from "./loadEnv";
|
15
15
|
import { createVirtualEntry, virtualEntryId } from "./virtualEntryPlugin";
|
16
16
|
import { vitePluginSsrCss } from "./vitePluginSsrCss";
|
17
17
|
events.setMaxListeners(1e3);
|
18
18
|
globalThis.__vxrnEnableNativeEnv = !0;
|
19
19
|
function one(options = {}) {
|
20
|
-
oneOptions = options,
|
20
|
+
oneOptions = options, options.config?.ensureTSConfig !== !1 && ensureTSConfig(), globalThis.__vxrnPluginConfig__ = options;
|
21
21
|
const { optimizeDeps } = getOptimizeDeps("build"), optimizeIds = optimizeDeps.include, optimizeIdRegex = new RegExp(
|
22
22
|
// santize ids for regex
|
23
23
|
// https://stackoverflow.com/questions/6300183/sanitize-string-of-regex-characters-before-regexp-build
|
24
24
|
`${optimizeIds.map((id) => id.replace(/[#-.]|[[-^]|[?|{}]/g, "\\$&")).join("|")}`
|
25
25
|
);
|
26
26
|
let tsConfigPathsPlugin = null;
|
27
|
-
const vxrnOptions = getOptionsFilled(), devAndProdPlugins = [
|
27
|
+
const vxrnOptions = getOptionsFilled(), { clientEnvDefine } = loadEnv(vxrnOptions?.mode ?? "development"), devAndProdPlugins = [
|
28
|
+
{
|
29
|
+
name: "one-define-env",
|
30
|
+
config() {
|
31
|
+
return {
|
32
|
+
define: clientEnvDefine
|
33
|
+
};
|
34
|
+
}
|
35
|
+
},
|
28
36
|
// proxy because you cant add a plugin inside a plugin
|
29
37
|
new Proxy(
|
30
38
|
{
|
@@ -83,24 +91,42 @@ function one(options = {}) {
|
|
83
91
|
return {
|
84
92
|
define: {
|
85
93
|
...options.web?.defaultRenderMode && {
|
86
|
-
"process.env.
|
94
|
+
"process.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(options.web.defaultRenderMode),
|
95
|
+
"import.meta.env.ONE_DEFAULT_RENDER_MODE": JSON.stringify(
|
96
|
+
options.web.defaultRenderMode
|
97
|
+
)
|
87
98
|
},
|
88
99
|
...options.setupFile && {
|
89
|
-
"process.env.
|
100
|
+
"process.env.ONE_SETUP_FILE": JSON.stringify(options.setupFile)
|
90
101
|
},
|
91
102
|
...process.env.NODE_ENV !== "production" && vxrnOptions && {
|
92
|
-
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
103
|
+
"process.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url),
|
104
|
+
"import.meta.env.ONE_SERVER_URL": JSON.stringify(vxrnOptions.server.url)
|
93
105
|
}
|
94
106
|
},
|
95
107
|
environments: {
|
96
108
|
client: {
|
97
109
|
define: {
|
98
|
-
"process.env.VITE_ENVIRONMENT": '"client"'
|
110
|
+
"process.env.VITE_ENVIRONMENT": '"client"',
|
111
|
+
"import.meta.env.VITE_ENVIRONMENT": '"client"'
|
99
112
|
}
|
100
113
|
},
|
101
114
|
ssr: {
|
102
115
|
define: {
|
103
|
-
"process.env.VITE_ENVIRONMENT": '"ssr"'
|
116
|
+
"process.env.VITE_ENVIRONMENT": '"ssr"',
|
117
|
+
"import.meta.env.VITE_ENVIRONMENT": '"ssr"'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
ios: {
|
121
|
+
define: {
|
122
|
+
"process.env.VITE_ENVIRONMENT": '"ios"',
|
123
|
+
"import.meta.env.VITE_ENVIRONMENT": '"ios"'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
android: {
|
127
|
+
define: {
|
128
|
+
"process.env.VITE_ENVIRONMENT": '"android"',
|
129
|
+
"import.meta.env.VITE_ENVIRONMENT": '"android"'
|
104
130
|
}
|
105
131
|
}
|
106
132
|
}
|
@@ -156,18 +182,21 @@ function one(options = {}) {
|
|
156
182
|
root: "app"
|
157
183
|
}),
|
158
184
|
{
|
159
|
-
name: "define-
|
185
|
+
name: "one-define-environment",
|
160
186
|
config() {
|
161
187
|
if (options.app?.key)
|
162
188
|
return {
|
163
189
|
define: {
|
164
|
-
"process.env.
|
190
|
+
"process.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
191
|
+
"import.meta.env.ONE_APP_NAME": JSON.stringify(options.app.key),
|
192
|
+
"process.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY),
|
193
|
+
"import.meta.env.ONE_CACHE_KEY": JSON.stringify(CACHE_KEY)
|
165
194
|
}
|
166
195
|
};
|
167
196
|
}
|
168
197
|
},
|
169
198
|
{
|
170
|
-
name: "use-react-18-for-native",
|
199
|
+
name: "one-use-react-18-for-native",
|
171
200
|
enforce: "pre",
|
172
201
|
async config() {
|
173
202
|
const sharedNativeConfig = {
|
@@ -192,7 +221,7 @@ function one(options = {}) {
|
|
192
221
|
}
|
193
222
|
},
|
194
223
|
{
|
195
|
-
name: "optimize-deps-load-web-extensions",
|
224
|
+
name: "one-optimize-deps-load-web-extensions",
|
196
225
|
enforce: "pre",
|
197
226
|
applyToEnvironment(environment) {
|
198
227
|
return isWebEnvironment(environment);
|
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,
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,OAAO,YAAY;AACnB,OAAO,QAAQ,SAAS,eAAe;AACvC,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,kBAAkB,eAAe;AAC7E,SAAS,iBAAiB;AAC1B,OAAO;AACP,SAAS,mBAAmB;AAC5B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AAEvC,SAAS,oBAAoB,sBAAsB;AACnD,SAAS,wBAAwB;AAEjC,OAAO,gBAAgB,GAAK;AAG5B,WAAW,wBAAwB;AAE5B,SA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