one 1.1.295 → 1.1.297
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.native.js.map +1 -1
- package/dist/cjs/Route.native.js.map +1 -1
- package/dist/cjs/cleanUrl.native.js.map +1 -1
- package/dist/cjs/cli/label-process.js +25 -0
- package/dist/cjs/cli/label-process.js.map +6 -0
- package/dist/cjs/cli/label-process.native.js +30 -0
- package/dist/cjs/cli/label-process.native.js.map +6 -0
- package/dist/cjs/cli/main.native.js.map +1 -1
- package/dist/cjs/cli/prebuild.native.js.map +1 -1
- package/dist/cjs/cli/run.js +2 -1
- package/dist/cjs/cli/run.js.map +1 -1
- package/dist/cjs/cli/run.native.js +2 -1
- package/dist/cjs/cli/run.native.js.map +3 -3
- package/dist/cjs/cli.js +15 -7
- package/dist/cjs/cli.js.map +2 -2
- package/dist/cjs/cli.native.js +15 -7
- package/dist/cjs/cli.native.js.map +3 -3
- package/dist/cjs/clientLoaderResolver.native.js.map +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/createApp.native.js.map +1 -1
- package/dist/cjs/createHandleRequest.native.js.map +1 -1
- package/dist/cjs/createRoute.native.js.map +1 -1
- package/dist/cjs/fallbackViews/Sitemap.native.js.map +1 -1
- package/dist/cjs/fallbackViews/Unmatched.native.js.map +1 -1
- package/dist/cjs/fork/NavigationContainer.native.js.map +1 -1
- package/dist/cjs/fork/createMemoryHistory.native.js.map +1 -1
- package/dist/cjs/fork/extractPathFromURL.native.js.map +1 -1
- package/dist/cjs/fork/findFocusedRoute.native.js.map +1 -1
- package/dist/cjs/fork/getPathFromState.native.js.map +1 -1
- package/dist/cjs/fork/getStateFromPath.native.js.map +1 -1
- package/dist/cjs/fork/useLinking.native.js.map +1 -1
- package/dist/cjs/fork/validatePathConfig.native.js.map +1 -1
- package/dist/cjs/getLinkingConfig.native.js.map +1 -1
- package/dist/cjs/getReactNavigationConfig.native.js.map +1 -1
- package/dist/cjs/getRoutes.native.js.map +1 -1
- package/dist/cjs/getURL.native.js.map +1 -1
- package/dist/cjs/head/Head.android.js.map +1 -1
- package/dist/cjs/head/Head.ios.js.map +1 -1
- package/dist/cjs/head/Head.native.js.map +1 -1
- package/dist/cjs/head/HeadModule.native.js.map +1 -1
- package/dist/cjs/head/index.native.js.map +1 -1
- package/dist/cjs/head/types.native.js.map +1 -1
- package/dist/cjs/head/url.native.js.map +1 -1
- package/dist/cjs/hooks.native.js.map +1 -1
- package/dist/cjs/imperative-api.native.js.map +1 -1
- package/dist/cjs/import-mode/index.android.js.map +1 -1
- package/dist/cjs/import-mode/index.ios.js.map +1 -1
- package/dist/cjs/import-mode/index.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/interfaces/router.native.js.map +1 -1
- package/dist/cjs/layouts/Drawer.native.js.map +1 -1
- package/dist/cjs/layouts/Stack.native.js.map +1 -1
- package/dist/cjs/layouts/Tabs.native.js.map +1 -1
- package/dist/cjs/layouts/withLayoutContext.native.js.map +1 -1
- package/dist/cjs/link/Link.native.js.map +1 -1
- package/dist/cjs/link/Redirect.native.js.map +1 -1
- package/dist/cjs/link/href.native.js.map +1 -1
- package/dist/cjs/link/linking.native.js.map +1 -1
- package/dist/cjs/link/path.native.js.map +1 -1
- package/dist/cjs/link/useLinkTo.native.js.map +1 -1
- package/dist/cjs/link/useLoadedNavigation.native.js.map +1 -1
- package/dist/cjs/matchers.native.js.map +1 -1
- package/dist/cjs/platform.native.js.map +1 -1
- package/dist/cjs/polyfills-mobile.native.js.map +1 -1
- package/dist/cjs/polyfills-server.native.js.map +1 -1
- package/dist/cjs/render.native.js.map +1 -1
- package/dist/cjs/router/RouterStore.native.js.map +1 -1
- package/dist/cjs/router/constants.native.js.map +1 -1
- package/dist/cjs/router/getNormalizedStatePath.native.js.map +1 -1
- package/dist/cjs/router/lastAction.native.js.map +1 -1
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/cjs/router/serverLocationContext.native.js.map +1 -1
- package/dist/cjs/router/useInitializeOneRouter.native.js.map +1 -1
- package/dist/cjs/serve.js +2 -1
- package/dist/cjs/serve.js.map +1 -1
- package/dist/cjs/serve.native.js +4 -2
- package/dist/cjs/serve.native.js.map +3 -3
- package/dist/cjs/server/createRoutesManifest.native.js.map +1 -1
- package/dist/cjs/server/getServerManifest.native.js.map +1 -1
- package/dist/cjs/server-render.native.js.map +1 -1
- package/dist/cjs/sortRoutes.native.js.map +1 -1
- package/dist/cjs/typed-routes/generateRouteTypes.native.js.map +1 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/useFocusEffect.native.js.map +1 -1
- package/dist/cjs/useLoader.native.js.map +1 -1
- package/dist/cjs/useNavigation.native.js.map +1 -1
- package/dist/cjs/useScreens.native.js.map +1 -1
- package/dist/cjs/useViteRoutes.native.js.map +1 -1
- package/dist/cjs/utils/assertIsReady.native.js.map +1 -1
- package/dist/cjs/utils/dynamicImport.native.js.map +1 -1
- package/dist/cjs/utils/existsAsync.native.js.map +1 -1
- package/dist/cjs/utils/getPageExport.native.js.map +1 -1
- package/dist/cjs/utils/globDir.native.js.map +1 -1
- package/dist/cjs/utils/hashString.native.js.map +1 -1
- package/dist/cjs/utils/isResponse.native.js.map +1 -1
- package/dist/cjs/utils/isStatus.native.js.map +1 -1
- package/dist/cjs/utils/promiseWithResolvers.native.js.map +1 -1
- package/dist/cjs/utils/rand.native.js.map +1 -1
- package/dist/cjs/utils/redirect.native.js.map +1 -1
- package/dist/cjs/utils/removeSearch.native.js.map +1 -1
- package/dist/cjs/utils/removeUndefined.native.js.map +1 -1
- package/dist/cjs/utils/requireResolve.native.js.map +1 -1
- package/dist/cjs/utils/url.native.js.map +1 -1
- package/dist/cjs/utils/weakKey.native.js.map +1 -1
- package/dist/cjs/utils/weakMemo.native.js.map +1 -1
- package/dist/cjs/views/EmptyRoute.native.js.map +1 -1
- package/dist/cjs/views/ErrorBoundary.native.js.map +1 -1
- package/dist/cjs/views/LoadProgressBar.native.js.map +1 -1
- package/dist/cjs/views/Navigator.native.js.map +1 -1
- package/dist/cjs/views/PreloadLinks.native.js.map +1 -1
- package/dist/cjs/views/RootErrorBoundary.native.js.map +1 -1
- package/dist/cjs/views/Screen.native.js.map +1 -1
- package/dist/cjs/views/ScrollRestoration.native.js.map +1 -1
- package/dist/cjs/views/Try.native.js.map +1 -1
- package/dist/cjs/vite/build.js +9 -4
- package/dist/cjs/vite/build.js.map +1 -1
- package/dist/cjs/vite/build.native.js +12 -6
- package/dist/cjs/vite/build.native.js.map +3 -3
- package/dist/cjs/vite/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/cjs/vite/constants.native.js.map +1 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
- package/dist/cjs/vite/customNodeExternals.native.js.map +1 -1
- package/dist/cjs/vite/ensureTsConfig.native.js.map +1 -1
- package/dist/cjs/vite/findDepsToOptimize.native.js.map +1 -1
- package/dist/cjs/vite/fixDependenciesPlugin.native.js.map +1 -1
- package/dist/cjs/vite/generateTypesForRoutes.native.js.map +1 -1
- package/dist/cjs/vite/getManifest.native.js.map +1 -1
- package/dist/cjs/vite/headers.native.js.map +1 -1
- package/dist/cjs/vite/loadEnv.native.js.map +1 -1
- package/dist/cjs/vite/makePluginWebOnly.native.js.map +1 -1
- package/dist/cjs/vite/one.js +3 -3
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js +3 -3
- package/dist/cjs/vite/one.native.js.map +2 -2
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/cjs/vite/resolveAPIRequest.native.js.map +1 -1
- package/dist/cjs/vite/server.native.js.map +1 -1
- package/dist/cjs/vite/types.native.js.map +1 -1
- package/dist/cjs/vite/virtualEntryPlugin.native.js.map +1 -1
- package/dist/cjs/vite/vitePluginSsrCss.native.js.map +1 -1
- package/dist/cjs/vite.native.js.map +1 -1
- package/dist/cjs/zero/getQueryKey.native.js.map +1 -1
- package/dist/cjs/zero/isZeroQuery.native.js.map +1 -1
- package/dist/cjs/zero/resolveQuery.native.js.map +1 -1
- package/dist/cjs/zero/subscribeToQuery.native.js.map +1 -1
- package/dist/cjs/zero/types.native.js.map +1 -1
- package/dist/cjs/zero/useQuery.native.js.map +1 -1
- package/dist/cjs/zero/useQueryZero.native.js.map +1 -1
- package/dist/cjs/zero.native.js.map +1 -1
- package/dist/esm/cli/label-process.js +9 -0
- package/dist/esm/cli/label-process.js.map +6 -0
- package/dist/esm/cli/label-process.mjs +8 -0
- package/dist/esm/cli/label-process.mjs.map +1 -0
- package/dist/esm/cli/label-process.native.js +8 -0
- package/dist/esm/cli/label-process.native.js.map +1 -0
- package/dist/esm/cli/run.js +2 -0
- package/dist/esm/cli/run.js.map +1 -1
- package/dist/esm/cli/run.mjs +2 -0
- package/dist/esm/cli/run.mjs.map +1 -1
- package/dist/esm/cli/run.native.js +2 -0
- package/dist/esm/cli/run.native.js.map +1 -1
- package/dist/esm/cli.js +16 -6
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +16 -6
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +17 -6
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/createApp.native.js.map +1 -1
- package/dist/esm/fork/NavigationContainer.native.js.map +1 -1
- package/dist/esm/fork/useLinking.native.js.map +1 -1
- package/dist/esm/getURL.native.js.map +1 -1
- package/dist/esm/head/Head.android.js.map +1 -1
- package/dist/esm/head/Head.ios.js.map +1 -1
- package/dist/esm/import-mode/index.android.js.map +1 -1
- package/dist/esm/import-mode/index.ios.js.map +1 -1
- package/dist/esm/import-mode/index.native.js.map +1 -1
- package/dist/esm/render.native.js.map +1 -1
- package/dist/esm/serve.js +2 -0
- package/dist/esm/serve.js.map +1 -1
- package/dist/esm/serve.mjs +2 -0
- package/dist/esm/serve.mjs.map +1 -1
- package/dist/esm/serve.native.js +4 -2
- package/dist/esm/serve.native.js.map +1 -1
- package/dist/esm/views/PreloadLinks.native.js.map +1 -1
- package/dist/esm/vite/build.js +15 -4
- package/dist/esm/vite/build.js.map +1 -1
- package/dist/esm/vite/build.mjs +10 -4
- package/dist/esm/vite/build.mjs.map +1 -1
- package/dist/esm/vite/build.native.js +13 -10
- package/dist/esm/vite/build.native.js.map +1 -1
- package/dist/esm/vite/headers.native.js.map +1 -1
- package/dist/esm/vite/one.js +3 -3
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +3 -3
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +3 -3
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +6 -6
- package/src/cli/label-process.ts +7 -0
- package/src/cli/run.ts +2 -0
- package/src/cli.ts +25 -7
- package/src/serve.ts +2 -0
- package/src/vite/build.ts +18 -3
- package/src/vite/one.ts +3 -3
- package/types/cli/label-process.d.ts +2 -0
- package/types/cli/label-process.d.ts.map +1 -0
- package/types/cli/run.d.ts.map +1 -1
- package/types/serve.d.ts.map +1 -1
- package/types/vite/build.d.ts.map +1 -1
package/dist/esm/serve.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","process","on","err","console","error","stack","args","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","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,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,KAAA,IAASC,SAAA,QAAiB;AACnD,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,iBAAA,QAAyB;AAElC,SAASC,kBAAA,QAA0B;
|
1
|
+
{"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","labelProcess","process","on","err","console","error","stack","args","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","oneServe","vxrnOptions","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","redirect","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","route","cleanPath","serverOptions","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","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,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,KAAA,IAASC,SAAA,QAAiB;AACnD,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,iBAAA,QAA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C,IACd,wBAAwBQ,QAAA,CAASX,OAAA,CAAQ3C,GAAA,CAAI,eAAe,CAAC,cAC7D5B,GACF;UACF;UAGF,OAAOkF,QAAA;QACT;QAEA,OAAOpD,OAAA,CAAQyD,IAAA,CACbL,QAAA,EACA,KACA9D,YAAA,CAAaQ,GAAA,CAAI4B,OAAO,IACpB;UACE,iBAAiB;QACnB,IACA,MACN;MACF;IACF,SAASxD,GAAA,EAAK;MACZC,OAAA,CAAQC,KAAA,CAAM,kCAAmCF,GAAA,CAAYG,KAAQ,EAAE;IACzE;IAEA,MAAM4E,IAAA,CAAK;EACb,CAAC;AACH","ignoreList":[]}
|
package/dist/esm/serve.native.js
CHANGED
@@ -8,12 +8,14 @@ import { isStatusRedirect } from "./utils/isStatus.native.js";
|
|
8
8
|
import { removeUndefined } from "./utils/removeUndefined.native.js";
|
9
9
|
import { resolveAPIRequest } from "./vite/resolveAPIRequest.native.js";
|
10
10
|
import { loadUserOneOptions } from "./vite/one.native.js";
|
11
|
+
import { labelProcess } from "./cli/label-process.native.js";
|
11
12
|
process.on("uncaughtException", function (err) {
|
12
13
|
console.error("[one] Uncaught exception", err?.stack || err);
|
13
14
|
});
|
14
15
|
async function serve() {
|
15
|
-
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
|
16
|
-
|
16
|
+
var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
17
|
+
labelProcess("serve");
|
18
|
+
var oneOptions = await loadUserOneOptions("serve");
|
17
19
|
return process.env.VXRN_REACT_19 = "1", await vxrnServe({
|
18
20
|
server: {
|
19
21
|
// fallback to one plugin
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","process","on","err","console","error","stack","args","arguments","length","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","_oneOptions_server_beforeStart","_oneOptions_server","call","oneServe","vxrnOptions","_options_web","_options_build_api","_options_build","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","_iterator","Symbol","iterator","next","done","return","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","route","cleanPath","serverOptions","entryServer","entry","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","route2","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","_exported_loader","exported","serverJsPath","loaderData","loader","preloads","headers","Headers","Response","path","_err_stack","htmlFiles","key","info","readFile","use","html","raw","response","handler","status","location"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,KAAA,IAASC,SAAA,QAAiB;AACnD,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,iBAAA,QAAyB;AAElC,SAASC,kBAAA,QAA0B;
|
1
|
+
{"version":3,"names":["FSExtra","Path","join","getServerEntry","serve","vxrnServe","createHandleRequest","isResponse","isStatusRedirect","removeUndefined","resolveAPIRequest","loadUserOneOptions","labelProcess","process","on","err","console","error","stack","args","arguments","length","oneOptions","env","VXRN_REACT_19","server","port","host","compress","platform","cacheHeaders","beforeStart","options","app","_oneOptions_server_beforeStart","_oneOptions_server","call","oneServe","vxrnOptions","_options_web","_options_build_api","_options_build","root","isAPIRequest","WeakMap","toAbsolute","p","resolve","redirects","web","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","redirect","_step","value","get","source","context","destinationUrl","destination","replace","param","paramName","substring","req","permanent","_iterator","Symbol","iterator","next","done","return","buildInfo","readJSON","Error","routeMap","builtRoutes","routeToBuildInfo","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","route","cleanPath","serverOptions","entryServer","entry","render","default","apiCJS","build","api","outputFormat","handleRequest","handleAPI","route2","request","loaderProps","apiFile","cwd","page","set","params","handleSSR","url","type","buildInfo2","_exported_loader","exported","serverJsPath","loaderData","loader","preloads","headers","Headers","Response","path","_err_stack","htmlFiles","key","info","readFile","use","html","raw","response","handler","status","location"],"sources":["../../src/serve.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO;AAEP,OAAOA,OAAA,MAAa;AAEpB,OAAOC,IAAA,IAAQC,IAAA,QAAY;AAE3B,SAASC,cAAA,EAAgBC,KAAA,IAASC,SAAA,QAAiB;AACnD,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,eAAA,QAAuB;AAChC,SAASC,iBAAA,QAAyB;AAElC,SAASC,kBAAA,QAA0B;AACnC,SAASC,YAAA,QAAoB;AAE7BC,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAM,4BAA4BF,GAAA,EAAKG,KAAA,IAASH,GAAG;AAC7D,CAAC;AAED,eAAsBX,MAAA,EAAM;EAC1B,IAAAe,IAAA,GAAAC,SAAoB,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EACpBR,YAAM,QAAa;EAGnB,IAAAU,UAAA,GAAQ,MAAIX,kBAEL,QAAM;EAAU,OACrBE,OAAQ,CAAAU,GAAA,CAAAC,aAAA,cAAAnB,SAAA;IAAAoB,MAAA;MAEN;MAAc,GAAAH,UAAA,CAAAG,MAAA;MAEd;MAAmB,GACjBhB,eAAW;QACXiB,IAAA,EAAMP,IAAA,CAAKO,IAAA,IAAAP,IAAA,CAAAO,IAAA;QACXC,IAAA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AC,QACpB,SAAAhC,aAAA,CAAAiC,OAAA,CAAA9B,OAAA;MAAA,IAAA6B,QACE;QAAiB,IACnBzH,UACA,CAAAyH,QAAA;UACN,IAAAxH,gBAAA,CAAAwH,QAAA,CAAAE,MAAA;YACF,IAAAC,QAAA,MAAAH,QAAA,CAAAZ,OAAA,CAAA3D,GAAA;YACF,OAAcE,OAAA,CAAAL,QAAA,CAAA6E,QAAA,EAAAH,QAAA,CAAAE,MAAA;UACZ;UACF,IAAAvF,YAAA,CAAAc,GAAA,CAAA0C,OAAA,GAEM,IAAK;YACZ6B,QAAA,CAAAZ,OAAA,CAAAZ,GAAA;UACH,SAAAzF,GAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["PreloadLinks"],"sources":["../../../src/views/Users/n8/
|
1
|
+
{"version":3,"names":["PreloadLinks"],"sources":["../../../src/views/Users/n8/one/packages/one/src/views/PreloadLinks.native.tsx"],"sourcesContent":[null],"mappings":"AAAO,SAASA,aAAA;EACd,OAAO;AACT","ignoreList":[]}
|
package/dist/esm/vite/build.js
CHANGED
@@ -4,16 +4,23 @@ import { createRequire } from "node:module";
|
|
4
4
|
import Path, { join, relative } from "node:path";
|
5
5
|
import { nodeExternals } from "rollup-plugin-node-externals";
|
6
6
|
import { mergeConfig, build as viteBuild } from "vite";
|
7
|
-
import {
|
7
|
+
import {
|
8
|
+
fillOptions,
|
9
|
+
getOptimizeDeps,
|
10
|
+
rollupRemoveUnusedImportsPlugin,
|
11
|
+
build as vxrnBuild
|
12
|
+
} from "vxrn";
|
8
13
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl";
|
9
14
|
import { getManifest } from "./getManifest";
|
10
15
|
import { loadUserOneOptions } from "./one";
|
11
16
|
import { replaceLoader } from "./replaceLoader";
|
17
|
+
import { labelProcess } from "../cli/label-process";
|
12
18
|
const { ensureDir, readFile, outputFile } = FSExtra;
|
13
19
|
process.on("uncaughtException", (err) => {
|
14
20
|
console.error(err?.message || err);
|
15
21
|
});
|
16
22
|
async function build(args) {
|
23
|
+
labelProcess("build");
|
17
24
|
const userOptions = await loadUserOneOptions("build"), serverOutputFormat = userOptions.build?.server?.outputFormat ?? "esm";
|
18
25
|
process.env.VXRN_REACT_19 = "1", process.env.ONE_SERVER_URL || console.warn(
|
19
26
|
"\u26A0\uFE0F No ONE_SERVER_URL environment set, set it in your .env to your target deploy URL"
|
@@ -44,7 +51,7 @@ async function build(args) {
|
|
44
51
|
`);
|
45
52
|
const processEnvDefines = Object.fromEntries(
|
46
53
|
Object.entries(process.env).map(([key, value]) => [`process.env.${key}`, JSON.stringify(value)])
|
47
|
-
), apiRouteExternalRegex = buildRegexExcludingDeps(optimizeDeps.include), apiEntryPoints = manifest.apiRoutes.reduce((entries, { page, file }) => (entries[page.slice(1) + ".js"] = join("app", file), entries), {}), apiOutputFormat = userOptions?.build?.api?.outputFormat ?? serverOutputFormat;
|
54
|
+
), apiRouteExternalRegex = buildRegexExcludingDeps(optimizeDeps.include), apiEntryPoints = manifest.apiRoutes.reduce((entries, { page, file }) => (entries[page.slice(1) + ".js"] = join("app", file), entries), {}), apiOutputFormat = userOptions?.build?.api?.outputFormat ?? serverOutputFormat, treeshake = userOptions?.build?.api?.treeshake;
|
48
55
|
await viteBuild(
|
49
56
|
mergeConfig(apiBuildConfig, {
|
50
57
|
appType: "custom",
|
@@ -70,9 +77,13 @@ async function build(args) {
|
|
70
77
|
copyPublicDir: !1,
|
71
78
|
minify: !1,
|
72
79
|
rollupOptions: {
|
73
|
-
treeshake: {
|
74
|
-
moduleSideEffects:
|
80
|
+
treeshake: treeshake ?? {
|
81
|
+
moduleSideEffects: !1
|
75
82
|
},
|
83
|
+
plugins: [
|
84
|
+
// otherwise rollup is leaving commonjs-only top level imports...
|
85
|
+
apiOutputFormat === "esm" ? rollupRemoveUnusedImportsPlugin : null
|
86
|
+
].filter(Boolean),
|
76
87
|
// too many issues
|
77
88
|
// treeshake: {
|
78
89
|
// moduleSideEffects: false,
|
@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AI,KACd,QAAQ,KAAK,oBAAoB,QAAQ,oBAAoB,IAAI,EAAE,GAE9D,IAAI,OAAO,IAAI,CAAC;AAAA,IACzB;AACA,WAAO,IAAI,SACR,MAAM,GAAG,EACT,IAAI,CAAC,SAAS;AACb,UAAI,KAAK,CAAC,MAAM,KAAK;AACnB,cAAM,QAAQ,OAAO,KAAK,MAAM,GAAG,KAAK,SAAS,CAAC,CAAC;AACnD,YAAI,CAAC,OAAO;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
@@ -4,11 +4,12 @@ import { createRequire } from "node:module";
|
|
4
4
|
import Path, { join, relative } from "node:path";
|
5
5
|
import { nodeExternals } from "rollup-plugin-node-externals";
|
6
6
|
import { mergeConfig, build as viteBuild } from "vite";
|
7
|
-
import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
|
7
|
+
import { fillOptions, getOptimizeDeps, rollupRemoveUnusedImportsPlugin, build as vxrnBuild } from "vxrn";
|
8
8
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl.mjs";
|
9
9
|
import { getManifest } from "./getManifest.mjs";
|
10
10
|
import { loadUserOneOptions } from "./one.mjs";
|
11
11
|
import { replaceLoader } from "./replaceLoader.mjs";
|
12
|
+
import { labelProcess } from "../cli/label-process.mjs";
|
12
13
|
const {
|
13
14
|
ensureDir,
|
14
15
|
readFile,
|
@@ -18,6 +19,7 @@ process.on("uncaughtException", err => {
|
|
18
19
|
console.error(err?.message || err);
|
19
20
|
});
|
20
21
|
async function build(args) {
|
22
|
+
labelProcess("build");
|
21
23
|
const userOptions = await loadUserOneOptions("build"),
|
22
24
|
serverOutputFormat = userOptions.build?.server?.outputFormat ?? "esm";
|
23
25
|
process.env.VXRN_REACT_19 = "1", process.env.ONE_SERVER_URL || console.warn("\u26A0\uFE0F No ONE_SERVER_URL environment set, set it in your .env to your target deploy URL");
|
@@ -53,7 +55,8 @@ async function build(args) {
|
|
53
55
|
page,
|
54
56
|
file
|
55
57
|
}) => (entries[page.slice(1) + ".js"] = join("app", file), entries), {}),
|
56
|
-
apiOutputFormat = userOptions?.build?.api?.outputFormat ?? serverOutputFormat
|
58
|
+
apiOutputFormat = userOptions?.build?.api?.outputFormat ?? serverOutputFormat,
|
59
|
+
treeshake = userOptions?.build?.api?.treeshake;
|
57
60
|
await viteBuild(mergeConfig(apiBuildConfig, {
|
58
61
|
appType: "custom",
|
59
62
|
configFile: !1,
|
@@ -76,9 +79,12 @@ async function build(args) {
|
|
76
79
|
copyPublicDir: !1,
|
77
80
|
minify: !1,
|
78
81
|
rollupOptions: {
|
79
|
-
treeshake: {
|
80
|
-
moduleSideEffects:
|
82
|
+
treeshake: treeshake ?? {
|
83
|
+
moduleSideEffects: !1
|
81
84
|
},
|
85
|
+
plugins: [
|
86
|
+
// otherwise rollup is leaving commonjs-only top level imports...
|
87
|
+
apiOutputFormat === "esm" ? rollupRemoveUnusedImportsPlugin : null].filter(Boolean),
|
82
88
|
// too many issues
|
83
89
|
// treeshake: {
|
84
90
|
// moduleSideEffects: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getLoaderPath","getPreloadPath","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","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","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","filter","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,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAC3F,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAG9C,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAG9B,MAAM;EAAEC,SAAA;EAAWC,QAAA;EAAUC;AAAW,IAAIpB,OAAA;AAE5CqB,OAAA,CAAQC,EAAA,CAAG,qBAAsBC,GAAA,IAAQ;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBf,MAAMmB,IAAA,EAGzB;EACD,MAAMC,WAAA,GAAc,MAAMZ,kBAAA,CAAmB,OAAO;IAC9Ca,kBAAA,GAAqBD,WAAA,CAAYpB,KAAA,EAAOsB,MAAA,EAAQC,YAAA,IAAgB;EAGtEV,OAAA,CAAQW,GAAA,CAAIC,aAAA,GAAgB,KAEvBZ,OAAA,CAAQW,GAAA,CAAIE,cAAA,IACfV,OAAA,CAAQW,IAAA,CACN,+FACF;EAGF,MAAMC,UAAA,GAAa,MAAMxB,SAAA,CACvB;MACEkB,MAAA,EAAQF,WAAA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A,SAASmI,YAAYC,MAAA,EAAgB;EACnC,OAAOA,MAAA,CAAOpI,OAAA,CAAQ,uBAAuB,MAAM;AACrD;AAEA,SAAS/B,wBAAwBoK,IAAA,EAAgB;EAM/C,MAAMC,YAAA,GAAe,oBAJCD,IAAA,CAAK1K,GAAA,CAAK4K,GAAA,IAAQJ,WAAA,CAAYI,GAAG,CAAC,EAEjBhO,IAAA,CAAK,GAAG,CAEU;EACzD,OAAO,IAAIiO,MAAA,CAAOF,YAAY;AAChC","ignoreList":[]}
|
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,MAAMqB,IAAA,EAGzB;EACDV,YAAA,CAAa,OAAO;EACpB,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,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":[]}
|
@@ -4,11 +4,12 @@ import { createRequire } from "node:module";
|
|
4
4
|
import Path, { join, relative } from "node:path";
|
5
5
|
import { nodeExternals } from "rollup-plugin-node-externals";
|
6
6
|
import { mergeConfig, build as viteBuild } from "vite";
|
7
|
-
import { fillOptions, getOptimizeDeps, build as vxrnBuild } from "vxrn";
|
7
|
+
import { fillOptions, getOptimizeDeps, rollupRemoveUnusedImportsPlugin, build as vxrnBuild } from "vxrn";
|
8
8
|
import { getLoaderPath, getPreloadPath } from "../cleanUrl.native.js";
|
9
9
|
import { getManifest } from "./getManifest.native.js";
|
10
10
|
import { loadUserOneOptions } from "./one.native.js";
|
11
11
|
import { replaceLoader } from "./replaceLoader.native.js";
|
12
|
+
import { labelProcess } from "../cli/label-process.native.js";
|
12
13
|
var {
|
13
14
|
ensureDir,
|
14
15
|
readFile,
|
@@ -18,11 +19,9 @@ process.on("uncaughtException", function (err) {
|
|
18
19
|
console.error(err?.message || err);
|
19
20
|
});
|
20
21
|
async function build(args) {
|
21
|
-
var _userOptions_build_server,
|
22
|
-
|
23
|
-
|
24
|
-
_options_server,
|
25
|
-
userOptions = await loadUserOneOptions("build"),
|
22
|
+
var _userOptions_build_server, _userOptions_build, _userOptions_web, _options_server;
|
23
|
+
labelProcess("build");
|
24
|
+
var userOptions = await loadUserOneOptions("build"),
|
26
25
|
_userOptions_build_server_outputFormat,
|
27
26
|
serverOutputFormat = (_userOptions_build_server_outputFormat = (_userOptions_build = userOptions.build) === null || _userOptions_build === void 0 || (_userOptions_build_server = _userOptions_build.server) === null || _userOptions_build_server === void 0 ? void 0 : _userOptions_build_server.outputFormat) !== null && _userOptions_build_server_outputFormat !== void 0 ? _userOptions_build_server_outputFormat : "esm";
|
28
27
|
process.env.VXRN_REACT_19 = "1", process.env.ONE_SERVER_URL || console.warn("\u26A0\uFE0F No ONE_SERVER_URL environment set, set it in your .env to your target deploy URL");
|
@@ -51,7 +50,7 @@ async function build(args) {
|
|
51
50
|
optimizeDeps
|
52
51
|
});
|
53
52
|
if (manifest.apiRoutes.length) {
|
54
|
-
var _userOptions_build_api, _userOptions_build1;
|
53
|
+
var _userOptions_build_api, _userOptions_build1, _userOptions_build_api1, _userOptions_build2;
|
55
54
|
console.info(`
|
56
55
|
\u{1F528} build api routes
|
57
56
|
`);
|
@@ -68,7 +67,8 @@ async function build(args) {
|
|
68
67
|
return entries[page.slice(1) + ".js"] = join("app", file), entries;
|
69
68
|
}, {}),
|
70
69
|
_userOptions_build_api_outputFormat,
|
71
|
-
apiOutputFormat = (_userOptions_build_api_outputFormat = userOptions == null || (_userOptions_build1 = userOptions.build) === null || _userOptions_build1 === void 0 || (_userOptions_build_api = _userOptions_build1.api) === null || _userOptions_build_api === void 0 ? void 0 : _userOptions_build_api.outputFormat) !== null && _userOptions_build_api_outputFormat !== void 0 ? _userOptions_build_api_outputFormat : serverOutputFormat
|
70
|
+
apiOutputFormat = (_userOptions_build_api_outputFormat = userOptions == null || (_userOptions_build1 = userOptions.build) === null || _userOptions_build1 === void 0 || (_userOptions_build_api = _userOptions_build1.api) === null || _userOptions_build_api === void 0 ? void 0 : _userOptions_build_api.outputFormat) !== null && _userOptions_build_api_outputFormat !== void 0 ? _userOptions_build_api_outputFormat : serverOutputFormat,
|
71
|
+
treeshake = userOptions == null || (_userOptions_build2 = userOptions.build) === null || _userOptions_build2 === void 0 || (_userOptions_build_api1 = _userOptions_build2.api) === null || _userOptions_build_api1 === void 0 ? void 0 : _userOptions_build_api1.treeshake;
|
72
72
|
await viteBuild(mergeConfig(apiBuildConfig, {
|
73
73
|
appType: "custom",
|
74
74
|
configFile: !1,
|
@@ -91,9 +91,12 @@ async function build(args) {
|
|
91
91
|
copyPublicDir: !1,
|
92
92
|
minify: !1,
|
93
93
|
rollupOptions: {
|
94
|
-
treeshake: {
|
95
|
-
moduleSideEffects:
|
94
|
+
treeshake: treeshake ?? {
|
95
|
+
moduleSideEffects: !1
|
96
96
|
},
|
97
|
+
plugins: [
|
98
|
+
// otherwise rollup is leaving commonjs-only top level imports...
|
99
|
+
apiOutputFormat === "esm" ? rollupRemoveUnusedImportsPlugin : null].filter(Boolean),
|
97
100
|
// too many issues
|
98
101
|
// treeshake: {
|
99
102
|
// moduleSideEffects: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["FSExtra","MicroMatch","createRequire","Path","join","relative","nodeExternals","mergeConfig","build","viteBuild","fillOptions","getOptimizeDeps","vxrnBuild","getLoaderPath","getPreloadPath","getManifest","loadUserOneOptions","replaceLoader","ensureDir","readFile","outputFile","process","on","err","console","error","message","args","_userOptions_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","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","_userOptions_build_api","_userOptions_build1","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","apiOutputFormat","api","plugins","exclude","define","ssr","noExternal","external","emptyOutDir","outDir","copyPublicDir","minify","rollupOptions","treeshake","moduleSideEffects","preserveEntrySignatures","input","output","entryFileNames","exports","format","esModule","chunkInfo","name","replace","chunkFileNames","dir","dirname","basename","extname","assetFileNames","assetInfo","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","filter","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc"],"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,SAASC,WAAA,EAAaC,eAAA,EAAiBH,KAAA,IAASI,SAAA,QAA2C;AAC3F,SAASC,aAAA,EAAeC,cAAA,QAAsB;AAG9C,SAASC,WAAA,QAAmB;AAC5B,SAASC,kBAAA,QAA0B;AACnC,SAASC,aAAA,QAAqB;AAG9B;EAAMC,SAAE;EAAAC,QAAW;EAAAC;AAAU,IAAWpB,OAAI;AAE5CqB,OAAA,CAAQC,EAAA,CAAG,qBAAqB,UAASC,GAAA;EACvCC,OAAA,CAAQC,KAAA,CAAMF,GAAA,EAAKG,OAAA,IAAWH,GAAG;AACnC,CAAC;AAED,eAAsBf,MAAMmB,IAAA,EAGzB;EACD,IAAAC,yBAA0B;IAAAC,kBAAmB;IAAAC,gBACvC;IAAAC,eAAqB;IAAAC,WAAmB,SAAQhB,kBAAgB;IAAAiB,sCAAA;IAAAC,kBAAA,IAAAD,sCAAA,IAAAJ,kBAAA,GAAAG,WAAA,CAAAxB,KAAA,cAAAqB,kBAAA,gBAAAD,yBAAA,GAAAC,kBAAA,CAAAM,MAAA,cAAAP,yBAAA,uBAAAA,yBAAA,CAAAQ,YAAA,cAAAH,sCAAA,cAAAA,sCAAA;EAGtEZ,OAAA,CAAQgB,GAAA,CAAIC,aAAA,GAAgB,KAEvBjB,OAAA,CAAQgB,GAAA,CAAIE,cAAA,IACff,OAAA,CAAQgB,IAAA;EAAA,IACNC,UAAA,SAAA7B,SAAA;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SAAAjI,OAAA,CAAA8O,EAAA,CAAA9G,SAAA;IACnC+G,KAAO;IACTC,SAAA;EAEA;EAME,IAAAC,QAAM,GAAA1H,WAAe,CAAA9C,MAAA,WAJCyK,GAAK,EAAAlL,KAAK;MAKhC;QAAO0J,SAAI;QAAOL;MAAA,IAAYrJ,KAAA;MAChC,OAAAkL,GAAA,CAAAxB,SAAA,IAAAL,QAAA,EAAA6B,GAAA","ignoreList":[]}
|
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_build_server","_userOptions_build","_userOptions_web","_options_server","userOptions","_userOptions_build_server_outputFormat","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","_userOptions_build_api","_userOptions_build1","_userOptions_build_api1","_userOptions_build2","info","processEnvDefines","Object","fromEntries","entries","map","param","key","value","JSON","stringify","apiRouteExternalRegex","buildRegexExcludingDeps","include","apiEntryPoints","reduce","page","file","slice","_userOptions_build_api_outputFormat","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","_assetInfo_name","baseName","ext","globalThis","require","import","meta","url","assets","builtRoutes","render","entryServer","serverEntry","_serverImport_default_default","serverImport","default","exit","stack","staticDir","clientDir","outputEntries","serverOutput","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_loop","index","_step","_vxrnOutput_buildArgs","_foundRoute_layouts","_exported_generateStaticParams","type","push","id","facadeModuleId","includes","relativeId","cwd","onlyBuild","buildArgs","only","contains","clientManifestKey","keys","clientManifest","find","endsWith","clientManifestEntry","findMatchingRoute","route","foundRoute","pageRoutes","startsWith","collectImports","imports","css","arguments","Set","flatMap","found","flat","x","entryImports","_foundRoute_layouts_flatMap","layoutEntries","layouts","layout","clientKey","contextKey","layoutImports","entry","preloadSetupFilePreloads","setupFile","needle","file2","preloads","path2","allEntries","allCSS","DEBUG","serverJsPath","fileName","exported","Error","cause","generateStaticParams","_ref","paramsList","call","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step1","next","done","params","cleanId","path","getPathnameFromFilePath","htmlPath","removeTrailingSlash","clientJsPath","htmlOutPath","loaderData","cleanPath","preloadPath","writeFile","preload","_globalThis___vxrnresetState","_globalThis","loaderProps","__vxrnLoaderProps__","__vxrnresetState","loader","_exported_loader","_ref1","code","withLoader","loaderPartialPath","html","errMsg","return","_iterator","moveAllFiles","rm","force","recursive","routeMap","acc","buildInfoForWriting","buildInfo"],"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,SAAAC,WAAA,EAAAC,eAAA,EAAAC,+BAAA,EAAAJ,KAAA,IAAAK,SAAA;AAAA,SACEC,aAAA,EAAAC,cAAA;AAAA,SACAC,WAAA;AAAA,SACAC,kBAAA;AAAA,SACAC,aAAS;AAAA,SAEJC,YAAA;AACP;EAAAC,SAAS;EAAAC,QAAe;EAAAC;AAAA,IAAAtB,OAAsB;AAG9CuB,OAAA,CAAAC,EAAS,oBAAmB,YAAAC,GAAA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estHeaders","cb","mergeHeaders","onto","from"],"sources":["../../../src/vite/Users/n8/
|
1
|
+
{"version":3,"names":["requestAsyncLocalStore","asyncHeadersCache","WeakMap","setCurrentRequestHeaders","cb","mergeHeaders","onto","from"],"sources":["../../../src/vite/Users/n8/one/packages/one/src/vite/headers.native.ts"],"sourcesContent":[null],"mappings":"AAAO,IAAMA,sBAAA,GAAyB;EAEzBC,iBAAA,GAAoB,mBAAIC,OAAA;AAIrC,eAAsBC,yBAAyBC,EAAA,EAA8B,CAAG;AAEzE,SAASC,aAAaC,IAAA,EAAeC,IAAA,EAAa,CAAG","ignoreList":[]}
|
package/dist/esm/vite/one.js
CHANGED
@@ -225,7 +225,7 @@ async function getUserOneOptions(command) {
|
|
225
225
|
await loadUserOneOptions(command);
|
226
226
|
}
|
227
227
|
if (!oneOptions)
|
228
|
-
throw new Error("No
|
228
|
+
throw new Error("No One options were loaded");
|
229
229
|
return oneOptions;
|
230
230
|
}
|
231
231
|
async function loadUserOneOptions(command) {
|
@@ -233,10 +233,10 @@ async function loadUserOneOptions(command) {
|
|
233
233
|
mode: "prod",
|
234
234
|
command
|
235
235
|
}))
|
236
|
-
throw new Error(
|
236
|
+
throw new Error(`No config found in ${process.cwd()}. Is this the correct directory?`);
|
237
237
|
const foundOptions = getUserOneOptions();
|
238
238
|
if (!foundOptions)
|
239
|
-
throw new Error("No One plugin
|
239
|
+
throw new Error("No One plugin found in this vite.config");
|
240
240
|
return foundOptions;
|
241
241
|
}
|
242
242
|
export {
|
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,SAAe,eAAe;AAC7C,SAA0D,0BAA0B;AACpF,OAAO,mBAAmB;AAC1B,SAAS,iBAAiB,kBAAkB,wBAAwB;AACpE,OAAO;AACP,SAAS,mBAAmB;AAC5B,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gB,KAAK,QAAQ,GAEhC;AAClB,gBAAM,eAAe,QAAQ,QAAQ,QAAQ,GAAG,EAAE,GAC5C,UAAU,aAAa,QAAQ,WAAW,EAAE,IAAI;AACtD,cAAI,YAAY,GAAI;AACpB,cAAI;AACF,kBAAM,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
@@ -205,16 +205,16 @@ async function getUserOneOptions(command) {
|
|
205
205
|
if (!command) throw new Error("Options not loaded and no command given");
|
206
206
|
await loadUserOneOptions(command);
|
207
207
|
}
|
208
|
-
if (!oneOptions) throw new Error("No
|
208
|
+
if (!oneOptions) throw new Error("No One options were loaded");
|
209
209
|
return oneOptions;
|
210
210
|
}
|
211
211
|
async function loadUserOneOptions(command) {
|
212
212
|
if (!(await loadConfigFromFile({
|
213
213
|
mode: "prod",
|
214
214
|
command
|
215
|
-
}))) throw new Error(
|
215
|
+
}))) throw new Error(`No config found in ${process.cwd()}. Is this the correct directory?`);
|
216
216
|
const foundOptions = getUserOneOptions();
|
217
|
-
if (!foundOptions) throw new Error("No One plugin
|
217
|
+
if (!foundOptions) throw new Error("No One plugin found in this vite.config");
|
218
218
|
return foundOptions;
|
219
219
|
}
|
220
220
|
export { loadUserOneOptions, one };
|