vxrn 0.1.30 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli.js +20 -1
- package/dist/cjs/cli.js.map +2 -2
- package/dist/cjs/cli.native.js +43 -1
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/constants.js +65 -2
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/constants.native.js +103 -3
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/cjs/exports/build.js +66 -50
- package/dist/cjs/exports/build.js.map +2 -2
- package/dist/cjs/exports/build.native.js +182 -83
- package/dist/cjs/exports/build.native.js.map +2 -2
- package/dist/cjs/exports/dev.js +292 -293
- package/dist/cjs/exports/dev.js.map +2 -2
- package/dist/cjs/exports/dev.native.js +575 -561
- package/dist/cjs/exports/dev.native.js.map +2 -2
- package/dist/cjs/exports/serve.js +7 -1
- package/dist/cjs/exports/serve.js.map +1 -1
- package/dist/cjs/exports/serve.native.js +76 -81
- package/dist/cjs/exports/serve.native.js.map +2 -2
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.js +25 -11
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.js.map +1 -1
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js +38 -22
- package/dist/cjs/plugins/clientBundleTreeShakePlugin.native.js.map +2 -2
- package/dist/cjs/utils/getBaseViteConfig.js +14 -4
- package/dist/cjs/utils/getBaseViteConfig.js.map +2 -2
- package/dist/cjs/utils/getBaseViteConfig.native.js +16 -4
- package/dist/cjs/utils/getBaseViteConfig.native.js.map +2 -2
- package/dist/cjs/{utils.js → utils/getHtml.js} +16 -12
- package/dist/cjs/utils/getHtml.js.map +6 -0
- package/dist/cjs/{utils.native.js → utils/getHtml.native.js} +11 -16
- package/dist/cjs/utils/getHtml.native.js.map +6 -0
- package/dist/cjs/utils/getVitePath.js.map +1 -1
- package/dist/cjs/utils/getVitePath.native.js.map +1 -1
- package/dist/cjs/utils/readVXRNConfig.js +2 -2
- package/dist/cjs/utils/readVXRNConfig.js.map +1 -1
- package/dist/cjs/utils/readVXRNConfig.native.js +1 -1
- package/dist/cjs/utils/readVXRNConfig.native.js.map +2 -2
- package/dist/esm/cli.js +20 -1
- package/dist/esm/cli.js.map +2 -2
- package/dist/esm/cli.mjs +25 -1
- package/dist/esm/cli.native.js +43 -1
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/constants.js +65 -2
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +30 -2
- package/dist/esm/constants.native.js +96 -2
- package/dist/esm/constants.native.js.map +2 -2
- package/dist/esm/exports/build.js +70 -51
- package/dist/esm/exports/build.js.map +1 -1
- package/dist/esm/exports/build.mjs +79 -29
- package/dist/esm/exports/build.native.js +186 -84
- package/dist/esm/exports/build.native.js.map +2 -2
- package/dist/esm/exports/dev.js +291 -295
- package/dist/esm/exports/dev.js.map +1 -1
- package/dist/esm/exports/dev.mjs +298 -283
- package/dist/esm/exports/dev.native.js +575 -561
- package/dist/esm/exports/dev.native.js.map +2 -2
- package/dist/esm/exports/serve.js +8 -1
- package/dist/esm/exports/serve.js.map +1 -1
- package/dist/esm/exports/serve.mjs +8 -1
- package/dist/esm/exports/serve.native.js +77 -81
- package/dist/esm/exports/serve.native.js.map +2 -2
- package/dist/esm/plugins/clientBundleTreeShakePlugin.js +25 -11
- package/dist/esm/plugins/clientBundleTreeShakePlugin.js.map +1 -1
- package/dist/esm/plugins/clientBundleTreeShakePlugin.mjs +29 -13
- package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js +38 -22
- package/dist/esm/plugins/clientBundleTreeShakePlugin.native.js.map +2 -2
- package/dist/esm/utils/getBaseViteConfig.js +4 -2
- package/dist/esm/utils/getBaseViteConfig.js.map +1 -1
- package/dist/esm/utils/getBaseViteConfig.mjs +4 -2
- package/dist/esm/utils/getBaseViteConfig.native.js +6 -2
- package/dist/esm/utils/getBaseViteConfig.native.js.map +2 -2
- package/dist/esm/utils/getHtml.js +16 -0
- package/dist/esm/utils/getHtml.js.map +6 -0
- package/dist/esm/utils/getHtml.mjs +13 -0
- package/dist/esm/utils/getHtml.native.js +10 -0
- package/dist/esm/utils/getHtml.native.js.map +6 -0
- package/dist/esm/utils/getVitePath.js.map +1 -1
- package/dist/esm/utils/getVitePath.native.js.map +1 -1
- package/dist/esm/utils/readVXRNConfig.js +2 -2
- package/dist/esm/utils/readVXRNConfig.js.map +1 -1
- package/dist/esm/utils/readVXRNConfig.mjs +2 -2
- package/dist/esm/utils/readVXRNConfig.native.js +1 -1
- package/dist/esm/utils/readVXRNConfig.native.js.map +2 -2
- package/package.json +10 -8
- package/src/cli.ts +27 -0
- package/src/constants.ts +71 -0
- package/src/exports/build.ts +93 -59
- package/src/exports/dev.ts +408 -398
- package/src/exports/serve.ts +12 -14
- package/src/types.ts +1 -1
- package/src/utils/getBaseViteConfig.ts +8 -2
- package/src/utils/getHtml.ts +12 -0
- package/src/utils/getVitePath.ts +1 -0
- package/src/utils/readVXRNConfig.ts +5 -0
- package/types/constants.d.ts +13 -0
- package/types/exports/dev.d.ts +0 -6
- package/types/types.d.ts +1 -1
- package/types/utils/getHtml.d.ts +8 -0
- package/types/utils/getOptionsFilled.d.ts +1 -1
- package/types/vendor/createExpoServer.d.ts +3 -1
- package/dist/cjs/build.js +0 -145
- package/dist/cjs/build.js.map +0 -6
- package/dist/cjs/build.native.js +0 -409
- package/dist/cjs/build.native.js.map +0 -6
- package/dist/cjs/commands/cli-build.js +0 -36
- package/dist/cjs/commands/cli-build.js.map +0 -6
- package/dist/cjs/commands/cli-build.native.js +0 -171
- package/dist/cjs/commands/cli-build.native.js.map +0 -6
- package/dist/cjs/commands/cli-dev.js +0 -52
- package/dist/cjs/commands/cli-dev.js.map +0 -6
- package/dist/cjs/commands/cli-dev.native.js +0 -217
- package/dist/cjs/commands/cli-dev.native.js.map +0 -6
- package/dist/cjs/commands/index.js +0 -34
- package/dist/cjs/commands/index.js.map +0 -6
- package/dist/cjs/commands/index.native.js +0 -45
- package/dist/cjs/commands/index.native.js.map +0 -6
- package/dist/cjs/create.js +0 -643
- package/dist/cjs/create.js.map +0 -6
- package/dist/cjs/create.native.js +0 -1318
- package/dist/cjs/create.native.js.map +0 -6
- package/dist/cjs/createDevServer.js +0 -601
- package/dist/cjs/createDevServer.js.map +0 -6
- package/dist/cjs/createDevServer.native.js +0 -1220
- package/dist/cjs/createDevServer.native.js.map +0 -6
- package/dist/cjs/createExpoServer.js +0 -34
- package/dist/cjs/createExpoServer.js.map +0 -6
- package/dist/cjs/createExpoServer.native.js +0 -42
- package/dist/cjs/createExpoServer.native.js.map +0 -6
- package/dist/cjs/dev/clientInjectPlugin.js +0 -67
- package/dist/cjs/dev/clientInjectPlugin.js.map +0 -6
- package/dist/cjs/dev/clientInjectPlugin.native.js +0 -191
- package/dist/cjs/dev/clientInjectPlugin.native.js.map +0 -6
- package/dist/cjs/dev/createDevServer.js +0 -1
- package/dist/cjs/dev/createDevServer.js.map +0 -6
- package/dist/cjs/dev/createDevServer.native.js +0 -2
- package/dist/cjs/dev/createDevServer.native.js.map +0 -6
- package/dist/cjs/dispose.js +0 -28
- package/dist/cjs/dispose.js.map +0 -6
- package/dist/cjs/dispose.native.js +0 -36
- package/dist/cjs/dispose.native.js.map +0 -6
- package/dist/cjs/exports/checkPatches.js +0 -62
- package/dist/cjs/exports/checkPatches.js.map +0 -6
- package/dist/cjs/exports/checkPatches.native.js +0 -289
- package/dist/cjs/exports/checkPatches.native.js.map +0 -6
- package/dist/cjs/getVitePath.js +0 -50
- package/dist/cjs/getVitePath.js.map +0 -6
- package/dist/cjs/getVitePath.native.js +0 -197
- package/dist/cjs/getVitePath.native.js.map +0 -6
- package/dist/cjs/nativePlugin.js +0 -89
- package/dist/cjs/nativePlugin.js.map +0 -6
- package/dist/cjs/nativePlugin.native.js +0 -346
- package/dist/cjs/nativePlugin.native.js.map +0 -6
- package/dist/cjs/utils/checkPatches.js +0 -62
- package/dist/cjs/utils/checkPatches.js.map +0 -6
- package/dist/cjs/utils/checkPatches.native.js +0 -289
- package/dist/cjs/utils/checkPatches.native.js.map +0 -6
- package/dist/cjs/utils/constants.js +0 -21
- package/dist/cjs/utils/constants.js.map +0 -6
- package/dist/cjs/utils/constants.native.js +0 -26
- package/dist/cjs/utils/constants.native.js.map +0 -6
- package/dist/cjs/utils/prerender.js +0 -1
- package/dist/cjs/utils/prerender.js.map +0 -6
- package/dist/cjs/utils/prerender.native.js +0 -2
- package/dist/cjs/utils/prerender.native.js.map +0 -6
- package/dist/cjs/utils.js.map +0 -6
- package/dist/cjs/utils.native.js.map +0 -6
- package/dist/esm/build.js +0 -128
- package/dist/esm/build.js.map +0 -6
- package/dist/esm/build.mjs +0 -119
- package/dist/esm/build.native.js +0 -385
- package/dist/esm/build.native.js.map +0 -6
- package/dist/esm/commands/cli-build.js +0 -23
- package/dist/esm/commands/cli-build.js.map +0 -6
- package/dist/esm/commands/cli-build.mjs +0 -22
- package/dist/esm/commands/cli-build.native.js +0 -156
- package/dist/esm/commands/cli-build.native.js.map +0 -6
- package/dist/esm/commands/cli-dev.js +0 -39
- package/dist/esm/commands/cli-dev.js.map +0 -6
- package/dist/esm/commands/cli-dev.mjs +0 -45
- package/dist/esm/commands/cli-dev.native.js +0 -202
- package/dist/esm/commands/cli-dev.native.js.map +0 -6
- package/dist/esm/commands/index.js +0 -10
- package/dist/esm/commands/index.js.map +0 -6
- package/dist/esm/commands/index.mjs +0 -8
- package/dist/esm/commands/index.native.js +0 -16
- package/dist/esm/commands/index.native.js.map +0 -6
- package/dist/esm/create.js +0 -655
- package/dist/esm/create.js.map +0 -6
- package/dist/esm/create.mjs +0 -622
- package/dist/esm/create.native.js +0 -1309
- package/dist/esm/create.native.js.map +0 -6
- package/dist/esm/createDevServer.js +0 -614
- package/dist/esm/createDevServer.js.map +0 -6
- package/dist/esm/createDevServer.mjs +0 -570
- package/dist/esm/createDevServer.native.js +0 -1211
- package/dist/esm/createDevServer.native.js.map +0 -6
- package/dist/esm/createExpoServer.js +0 -20
- package/dist/esm/createExpoServer.js.map +0 -6
- package/dist/esm/createExpoServer.mjs +0 -17
- package/dist/esm/createExpoServer.native.js +0 -22
- package/dist/esm/createExpoServer.native.js.map +0 -6
- package/dist/esm/dev/clientInjectPlugin.js +0 -43
- package/dist/esm/dev/clientInjectPlugin.js.map +0 -6
- package/dist/esm/dev/clientInjectPlugin.mjs +0 -57
- package/dist/esm/dev/clientInjectPlugin.native.js +0 -162
- package/dist/esm/dev/clientInjectPlugin.native.js.map +0 -6
- package/dist/esm/dev/createDevServer.js +0 -1
- package/dist/esm/dev/createDevServer.js.map +0 -6
- package/dist/esm/dev/createDevServer.mjs +0 -0
- package/dist/esm/dev/createDevServer.native.js +0 -1
- package/dist/esm/dev/createDevServer.native.js.map +0 -6
- package/dist/esm/dispose.js +0 -12
- package/dist/esm/dispose.js.map +0 -6
- package/dist/esm/dispose.mjs +0 -8
- package/dist/esm/dispose.native.js +0 -14
- package/dist/esm/dispose.native.js.map +0 -6
- package/dist/esm/exports/checkPatches.js +0 -40
- package/dist/esm/exports/checkPatches.js.map +0 -6
- package/dist/esm/exports/checkPatches.mjs +0 -31
- package/dist/esm/exports/checkPatches.native.js +0 -262
- package/dist/esm/exports/checkPatches.native.js.map +0 -6
- package/dist/esm/getVitePath.js +0 -28
- package/dist/esm/getVitePath.js.map +0 -6
- package/dist/esm/getVitePath.mjs +0 -21
- package/dist/esm/getVitePath.native.js +0 -170
- package/dist/esm/getVitePath.native.js.map +0 -6
- package/dist/esm/nativePlugin.js +0 -75
- package/dist/esm/nativePlugin.js.map +0 -6
- package/dist/esm/nativePlugin.mjs +0 -55
- package/dist/esm/nativePlugin.native.js +0 -327
- package/dist/esm/nativePlugin.native.js.map +0 -6
- package/dist/esm/utils/checkPatches.js +0 -40
- package/dist/esm/utils/checkPatches.js.map +0 -6
- package/dist/esm/utils/checkPatches.mjs +0 -31
- package/dist/esm/utils/checkPatches.native.js +0 -262
- package/dist/esm/utils/checkPatches.native.js.map +0 -6
- package/dist/esm/utils/constants.js +0 -5
- package/dist/esm/utils/constants.js.map +0 -6
- package/dist/esm/utils/constants.mjs +0 -2
- package/dist/esm/utils/constants.native.js +0 -5
- package/dist/esm/utils/constants.native.js.map +0 -6
- package/dist/esm/utils/prerender.js +0 -1
- package/dist/esm/utils/prerender.js.map +0 -6
- package/dist/esm/utils/prerender.mjs +0 -0
- package/dist/esm/utils/prerender.native.js +0 -1
- package/dist/esm/utils/prerender.native.js.map +0 -6
- package/dist/esm/utils.js +0 -12
- package/dist/esm/utils.js.map +0 -6
- package/dist/esm/utils.mjs +0 -8
- package/dist/esm/utils.native.js +0 -14
- package/dist/esm/utils.native.js.map +0 -6
- package/src/plugins/clientBundleTreeShakePlugin.tsx +0 -105
- package/src/vendor/createExpoServer.ts +0 -43
- package/src/vendor/repack/dev-server/src/createServer.ts +0 -128
- package/src/vendor/repack/dev-server/src/img/favicon.ico +0 -0
- package/src/vendor/repack/dev-server/src/index.ts +0 -2
- package/src/vendor/repack/dev-server/src/plugins/api/apiPlugin.ts +0 -50
- package/src/vendor/repack/dev-server/src/plugins/api/index.ts +0 -1
- package/src/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.ts +0 -84
- package/src/vendor/repack/dev-server/src/plugins/compiler/index.ts +0 -2
- package/src/vendor/repack/dev-server/src/plugins/compiler/types.ts +0 -37
- package/src/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.ts +0 -107
- package/src/vendor/repack/dev-server/src/plugins/devtools/index.ts +0 -1
- package/src/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.ts +0 -14
- package/src/vendor/repack/dev-server/src/plugins/favicon/index.ts +0 -1
- package/src/vendor/repack/dev-server/src/plugins/multipart/index.ts +0 -2
- package/src/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.ts +0 -77
- package/src/vendor/repack/dev-server/src/plugins/multipart/types.ts +0 -13
- package/src/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.ts +0 -233
- package/src/vendor/repack/dev-server/src/plugins/symbolicate/index.ts +0 -3
- package/src/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.ts +0 -48
- package/src/vendor/repack/dev-server/src/plugins/symbolicate/types.ts +0 -71
- package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts +0 -74
- package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.ts +0 -60
- package/src/vendor/repack/dev-server/src/plugins/wss/index.ts +0 -3
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts +0 -158
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts +0 -69
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.ts +0 -134
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.ts +0 -74
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts +0 -205
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts +0 -97
- package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts +0 -401
- package/src/vendor/repack/dev-server/src/plugins/wss/types.ts +0 -17
- package/src/vendor/repack/dev-server/src/plugins/wss/wssPlugin.ts +0 -73
- package/src/vendor/repack/dev-server/src/types.ts +0 -197
- package/types/VXRNConfigFilled.d.ts +0 -21
- package/types/build.d.ts +0 -4
- package/types/commands/cli-build.d.ts +0 -3
- package/types/commands/cli-dev.d.ts +0 -3
- package/types/commands/index.d.ts +0 -6
- package/types/create.d.ts +0 -13
- package/types/createDevServer.d.ts +0 -13
- package/types/createExpoServer.d.ts +0 -4
- package/types/dev/bindKeypressInput.d.ts +0 -3
- package/types/dev/clientInjectPlugin.d.ts +0 -7
- package/types/dev/createDevServer.d.ts +0 -1
- package/types/dispose.d.ts +0 -3
- package/types/getBaseViteConfig.d.ts +0 -5
- package/types/getOptionsFIlled.d.ts +0 -21
- package/types/getVitePath.d.ts +0 -2
- package/types/nativePlugin.d.ts +0 -7
- package/types/plugins/clientBundleTreeShakePlugni.d.ts +0 -13
- package/types/plugins/server-tree-shake.d.ts +0 -13
- package/types/utils/checkPatches.d.ts +0 -3
- package/types/utils/constants.d.ts +0 -2
- package/types/utils/prerender.d.ts +0 -1
- package/types/utils.d.ts +0 -3
- package/types/vendor/repack/dev-server/src/createServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/api/apiPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/api/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/compiler/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/compiler/types.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/devtools/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/favicon/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/multipart/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/multipart/types.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/symbolicate/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/symbolicate/types.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/index.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/types.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/plugins/wss/wssPlugin.d.ts +0 -1
- package/types/vendor/repack/dev-server/src/types.d.ts +0 -1
package/dist/cjs/build.native.js
DELETED
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var build_exports = {};
|
|
25
|
-
__export(build_exports, {
|
|
26
|
-
build: () => build,
|
|
27
|
-
resolveFile: () => resolveFile
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(build_exports);
|
|
30
|
-
var import_import_meta_resolve = require("import-meta-resolve"), import_node_fs = __toESM(require("node:fs"), 1), import_node_path = __toESM(require("node:path"), 1), import_vite = require("vite"), import_fs_extra = __toESM(require("fs-extra"), 1), import_clientBundleTreeShakePlugin = require("./plugins/clientBundleTreeShakePlugin"), import_getBaseViteConfig = require("./utils/getBaseViteConfig"), import_getOptionsFilled = require("./utils/getOptionsFilled");
|
|
31
|
-
const import_meta = {};
|
|
32
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
33
|
-
try {
|
|
34
|
-
var info = gen[key](arg), value = info.value;
|
|
35
|
-
} catch (error) {
|
|
36
|
-
reject(error);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
40
|
-
}
|
|
41
|
-
function _async_to_generator(fn) {
|
|
42
|
-
return function() {
|
|
43
|
-
var self = this, args = arguments;
|
|
44
|
-
return new Promise(function(resolve, reject) {
|
|
45
|
-
var gen = fn.apply(self, args);
|
|
46
|
-
function _next(value) {
|
|
47
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
48
|
-
}
|
|
49
|
-
function _throw(err) {
|
|
50
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
51
|
-
}
|
|
52
|
-
_next(void 0);
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function _ts_generator(thisArg, body) {
|
|
57
|
-
var f, y, t, g, _ = {
|
|
58
|
-
label: 0,
|
|
59
|
-
sent: function() {
|
|
60
|
-
if (t[0] & 1)
|
|
61
|
-
throw t[1];
|
|
62
|
-
return t[1];
|
|
63
|
-
},
|
|
64
|
-
trys: [],
|
|
65
|
-
ops: []
|
|
66
|
-
};
|
|
67
|
-
return g = {
|
|
68
|
-
next: verb(0),
|
|
69
|
-
throw: verb(1),
|
|
70
|
-
return: verb(2)
|
|
71
|
-
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
72
|
-
return this;
|
|
73
|
-
}), g;
|
|
74
|
-
function verb(n) {
|
|
75
|
-
return function(v) {
|
|
76
|
-
return step([
|
|
77
|
-
n,
|
|
78
|
-
v
|
|
79
|
-
]);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function step(op) {
|
|
83
|
-
if (f)
|
|
84
|
-
throw new TypeError("Generator is already executing.");
|
|
85
|
-
for (; _; )
|
|
86
|
-
try {
|
|
87
|
-
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
88
|
-
return t;
|
|
89
|
-
switch (y = 0, t && (op = [
|
|
90
|
-
op[0] & 2,
|
|
91
|
-
t.value
|
|
92
|
-
]), op[0]) {
|
|
93
|
-
case 0:
|
|
94
|
-
case 1:
|
|
95
|
-
t = op;
|
|
96
|
-
break;
|
|
97
|
-
case 4:
|
|
98
|
-
return _.label++, {
|
|
99
|
-
value: op[1],
|
|
100
|
-
done: !1
|
|
101
|
-
};
|
|
102
|
-
case 5:
|
|
103
|
-
_.label++, y = op[1], op = [
|
|
104
|
-
0
|
|
105
|
-
];
|
|
106
|
-
continue;
|
|
107
|
-
case 7:
|
|
108
|
-
op = _.ops.pop(), _.trys.pop();
|
|
109
|
-
continue;
|
|
110
|
-
default:
|
|
111
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
112
|
-
_ = 0;
|
|
113
|
-
continue;
|
|
114
|
-
}
|
|
115
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
116
|
-
_.label = op[1];
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
120
|
-
_.label = t[1], t = op;
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
if (t && _.label < t[2]) {
|
|
124
|
-
_.label = t[2], _.ops.push(op);
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
op = body.call(thisArg, _);
|
|
131
|
-
} catch (e) {
|
|
132
|
-
op = [
|
|
133
|
-
6,
|
|
134
|
-
e
|
|
135
|
-
], y = 0;
|
|
136
|
-
} finally {
|
|
137
|
-
f = t = 0;
|
|
138
|
-
}
|
|
139
|
-
if (op[0] & 5)
|
|
140
|
-
throw op[1];
|
|
141
|
-
return {
|
|
142
|
-
value: op[0] ? op[1] : void 0,
|
|
143
|
-
done: !0
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
var resolveFile = function(path2) {
|
|
148
|
-
try {
|
|
149
|
-
return (0, import_import_meta_resolve.resolve)(path2, import_meta.url).replace("file://", "");
|
|
150
|
-
} catch {
|
|
151
|
-
return require.resolve(path2);
|
|
152
|
-
}
|
|
153
|
-
}, ensureDir = import_fs_extra.default.ensureDir, existsSync = import_fs_extra.default.existsSync, readFile = import_fs_extra.default.readFile, extensions = [
|
|
154
|
-
".web.tsx",
|
|
155
|
-
".tsx",
|
|
156
|
-
".web.ts",
|
|
157
|
-
".ts",
|
|
158
|
-
".web.jsx",
|
|
159
|
-
".jsx",
|
|
160
|
-
".web.js",
|
|
161
|
-
".js",
|
|
162
|
-
".css",
|
|
163
|
-
".json"
|
|
164
|
-
], build = function() {
|
|
165
|
-
var _ref = _async_to_generator(function(optionsIn) {
|
|
166
|
-
var options, depsToOptimize, buildConfig, output;
|
|
167
|
-
return _ts_generator(this, function(_state) {
|
|
168
|
-
switch (_state.label) {
|
|
169
|
-
case 0:
|
|
170
|
-
return [
|
|
171
|
-
4,
|
|
172
|
-
(0, import_getOptionsFilled.getOptionsFilled)(optionsIn)
|
|
173
|
-
];
|
|
174
|
-
case 1:
|
|
175
|
-
return options = _state.sent(), depsToOptimize = [
|
|
176
|
-
"react",
|
|
177
|
-
"react-dom",
|
|
178
|
-
"@react-native/normalize-color",
|
|
179
|
-
"@react-navigation/native",
|
|
180
|
-
"expo-constants",
|
|
181
|
-
"expo-modules-core",
|
|
182
|
-
"expo-status-bar"
|
|
183
|
-
], buildConfig = (0, import_vite.mergeConfig)((0, import_getBaseViteConfig.getBaseViteConfig)({
|
|
184
|
-
mode: "production"
|
|
185
|
-
}), {
|
|
186
|
-
root: options.root,
|
|
187
|
-
clearScreen: !1,
|
|
188
|
-
optimizeDeps: {
|
|
189
|
-
include: depsToOptimize,
|
|
190
|
-
esbuildOptions: {
|
|
191
|
-
resolveExtensions: extensions
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}), options.webConfig && (buildConfig = (0, import_vite.mergeConfig)(buildConfig, options.webConfig)), console.info("build client"), [
|
|
195
|
-
4,
|
|
196
|
-
(0, import_vite.build)((0, import_vite.mergeConfig)(buildConfig, {
|
|
197
|
-
plugins: [
|
|
198
|
-
(0, import_clientBundleTreeShakePlugin.clientBundleTreeShakePlugin)({})
|
|
199
|
-
],
|
|
200
|
-
build: {
|
|
201
|
-
ssrManifest: !0,
|
|
202
|
-
outDir: "dist/client"
|
|
203
|
-
}
|
|
204
|
-
}))
|
|
205
|
-
];
|
|
206
|
-
case 2:
|
|
207
|
-
return _state.sent(), console.info("build server"), [
|
|
208
|
-
4,
|
|
209
|
-
(0, import_vite.build)((0, import_vite.mergeConfig)(buildConfig, {
|
|
210
|
-
resolve: {
|
|
211
|
-
alias: {
|
|
212
|
-
"react-native": "react-native-web-lite"
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
optimizeDeps: {
|
|
216
|
-
esbuildOptions: {
|
|
217
|
-
format: "cjs"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
ssr: {
|
|
221
|
-
noExternal: !0
|
|
222
|
-
},
|
|
223
|
-
build: {
|
|
224
|
-
// we want one big file of css
|
|
225
|
-
cssCodeSplit: !1,
|
|
226
|
-
ssr: "src/entry-server.tsx",
|
|
227
|
-
outDir: "dist/server",
|
|
228
|
-
rollupOptions: {
|
|
229
|
-
external: []
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}))
|
|
233
|
-
];
|
|
234
|
-
case 3:
|
|
235
|
-
return output = _state.sent().output, console.info("generating static pages"), [
|
|
236
|
-
4,
|
|
237
|
-
generateStaticPages(options, output)
|
|
238
|
-
];
|
|
239
|
-
case 4:
|
|
240
|
-
return _state.sent(), [
|
|
241
|
-
2
|
|
242
|
-
];
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
return function(optionsIn) {
|
|
247
|
-
return _ref.apply(this, arguments);
|
|
248
|
-
};
|
|
249
|
-
}();
|
|
250
|
-
function generateStaticPages(options, serverOutput) {
|
|
251
|
-
return _generateStaticPages.apply(this, arguments);
|
|
252
|
-
}
|
|
253
|
-
function _generateStaticPages() {
|
|
254
|
-
return _generateStaticPages = _async_to_generator(function(options, serverOutput) {
|
|
255
|
-
var toAbsolute, staticDir, template, render, entry, assets, allRoutes, cssString, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, path1, _ref, appHtml, headHtml, slashFileName, clientHtmlPath, clientHtml, _tmp, html, filePath, err;
|
|
256
|
-
return _ts_generator(this, function(_state) {
|
|
257
|
-
switch (_state.label) {
|
|
258
|
-
case 0:
|
|
259
|
-
return toAbsolute = function(p) {
|
|
260
|
-
return import_node_path.default.resolve(options.root, p);
|
|
261
|
-
}, staticDir = toAbsolute("dist/static"), [
|
|
262
|
-
4,
|
|
263
|
-
ensureDir(staticDir)
|
|
264
|
-
];
|
|
265
|
-
case 1:
|
|
266
|
-
return _state.sent(), template = import_node_fs.default.readFileSync(toAbsolute("index.html"), "utf-8"), [
|
|
267
|
-
4,
|
|
268
|
-
import("".concat(options.root, "/dist/server/entry-server.js"))
|
|
269
|
-
];
|
|
270
|
-
case 2:
|
|
271
|
-
return render = _state.sent().render, entry = serverOutput.find(function(x) {
|
|
272
|
-
var _x_facadeModuleId;
|
|
273
|
-
return x.type === "chunk" && ((_x_facadeModuleId = x.facadeModuleId) === null || _x_facadeModuleId === void 0 ? void 0 : _x_facadeModuleId.includes("entry-server"));
|
|
274
|
-
}), assets = [], [
|
|
275
|
-
4,
|
|
276
|
-
Promise.all(serverOutput.flatMap(function() {
|
|
277
|
-
var _ref2 = _async_to_generator(function(output) {
|
|
278
|
-
var _exported_generateStaticParams, id, file, name, endpointPath, exported, staticParams, result;
|
|
279
|
-
function getUrl() {
|
|
280
|
-
var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
281
|
-
return name === "index" ? "/" : "/".concat(name.split("/").map(function(part) {
|
|
282
|
-
if (part[0] === "[") {
|
|
283
|
-
var found = params[part.slice(1, part.length - 1)];
|
|
284
|
-
return found || console.warn("not found", {
|
|
285
|
-
params,
|
|
286
|
-
part
|
|
287
|
-
}), found;
|
|
288
|
-
}
|
|
289
|
-
return part;
|
|
290
|
-
}).join("/"));
|
|
291
|
-
}
|
|
292
|
-
return _ts_generator(this, function(_state2) {
|
|
293
|
-
switch (_state2.label) {
|
|
294
|
-
case 0:
|
|
295
|
-
return output.type === "asset" ? (assets.push(output), [
|
|
296
|
-
2,
|
|
297
|
-
[]
|
|
298
|
-
]) : (id = output.facadeModuleId || "", file = import_node_path.default.basename(id), name = file.replace(/\.[^/.]+$/, ""), !id || file[0] === "_" || file.includes("entry-server") ? [
|
|
299
|
-
2,
|
|
300
|
-
[]
|
|
301
|
-
] : (endpointPath = import_node_path.default.join(options.root, "dist/server", output.fileName), [
|
|
302
|
-
4,
|
|
303
|
-
import(endpointPath)
|
|
304
|
-
]));
|
|
305
|
-
case 1:
|
|
306
|
-
return exported = _state2.sent(), [
|
|
307
|
-
4,
|
|
308
|
-
(_exported_generateStaticParams = exported.generateStaticParams) === null || _exported_generateStaticParams === void 0 ? void 0 : _exported_generateStaticParams.call(exported)
|
|
309
|
-
];
|
|
310
|
-
case 2:
|
|
311
|
-
return staticParams = _state2.sent(), result = (staticParams || [
|
|
312
|
-
{}
|
|
313
|
-
]).map(function(params) {
|
|
314
|
-
return getUrl(params);
|
|
315
|
-
}), [
|
|
316
|
-
2,
|
|
317
|
-
result
|
|
318
|
-
];
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
return function(output) {
|
|
323
|
-
return _ref2.apply(this, arguments);
|
|
324
|
-
};
|
|
325
|
-
}()))
|
|
326
|
-
];
|
|
327
|
-
case 3:
|
|
328
|
-
allRoutes = _state.sent().flat(), cssString = assets.filter(function(x) {
|
|
329
|
-
var _x_name;
|
|
330
|
-
return (_x_name = x.name) === null || _x_name === void 0 ? void 0 : _x_name.endsWith(".css");
|
|
331
|
-
}).map(function(x) {
|
|
332
|
-
return x.source;
|
|
333
|
-
}).join(`
|
|
334
|
-
|
|
335
|
-
`), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0, _state.label = 4;
|
|
336
|
-
case 4:
|
|
337
|
-
_state.trys.push([
|
|
338
|
-
4,
|
|
339
|
-
12,
|
|
340
|
-
13,
|
|
341
|
-
14
|
|
342
|
-
]), _iterator = allRoutes[Symbol.iterator](), _state.label = 5;
|
|
343
|
-
case 5:
|
|
344
|
-
return (_iteratorNormalCompletion = (_step = _iterator.next()).done) ? [
|
|
345
|
-
3,
|
|
346
|
-
11
|
|
347
|
-
] : (path1 = _step.value, [
|
|
348
|
-
4,
|
|
349
|
-
render({
|
|
350
|
-
path: path1
|
|
351
|
-
})
|
|
352
|
-
]);
|
|
353
|
-
case 6:
|
|
354
|
-
return _ref = _state.sent(), appHtml = _ref.appHtml, headHtml = _ref.headHtml, slashFileName = "".concat(path1 === "/" ? "/index" : path1, ".html"), clientHtmlPath = toAbsolute("dist/client".concat(slashFileName)), existsSync(clientHtmlPath) ? [
|
|
355
|
-
4,
|
|
356
|
-
readFile(clientHtmlPath, "utf-8")
|
|
357
|
-
] : [
|
|
358
|
-
3,
|
|
359
|
-
8
|
|
360
|
-
];
|
|
361
|
-
case 7:
|
|
362
|
-
return _tmp = _state.sent(), [
|
|
363
|
-
3,
|
|
364
|
-
9
|
|
365
|
-
];
|
|
366
|
-
case 8:
|
|
367
|
-
_tmp = null, _state.label = 9;
|
|
368
|
-
case 9:
|
|
369
|
-
clientHtml = _tmp, html = (clientHtml || template).replace("<!--ssr-outlet-->", appHtml).replace("<!--head-outlet-->", "".concat(headHtml, `
|
|
370
|
-
`).concat(cssString ? "<style>".concat(cssString, "</style>") : "")), filePath = toAbsolute("dist/static".concat(slashFileName)), import_node_fs.default.writeFileSync(toAbsolute(filePath), html), _state.label = 10;
|
|
371
|
-
case 10:
|
|
372
|
-
return _iteratorNormalCompletion = !0, [
|
|
373
|
-
3,
|
|
374
|
-
5
|
|
375
|
-
];
|
|
376
|
-
case 11:
|
|
377
|
-
return [
|
|
378
|
-
3,
|
|
379
|
-
14
|
|
380
|
-
];
|
|
381
|
-
case 12:
|
|
382
|
-
return err = _state.sent(), _didIteratorError = !0, _iteratorError = err, [
|
|
383
|
-
3,
|
|
384
|
-
14
|
|
385
|
-
];
|
|
386
|
-
case 13:
|
|
387
|
-
try {
|
|
388
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
389
|
-
} finally {
|
|
390
|
-
if (_didIteratorError)
|
|
391
|
-
throw _iteratorError;
|
|
392
|
-
}
|
|
393
|
-
return [
|
|
394
|
-
7
|
|
395
|
-
];
|
|
396
|
-
case 14:
|
|
397
|
-
return [
|
|
398
|
-
2
|
|
399
|
-
];
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
}), _generateStaticPages.apply(this, arguments);
|
|
403
|
-
}
|
|
404
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
405
|
-
0 && (module.exports = {
|
|
406
|
-
build,
|
|
407
|
-
resolveFile
|
|
408
|
-
});
|
|
409
|
-
//# sourceMappingURL=build.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Users/n8/vxrn/packages/vxrn/src/build.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA6C,gCAC7C,iBAAe,gCACf,mBAAiB,kCACjB,cAAiE,iBAEjE,kBAAoB,iCAEpB,qCAA4C,kDAE5C,2BAAkC,sCAClC,0BAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjD,IAAMA,cAAc,SAACC,OAAAA;AAC1B,MAAI;AACF,eAAOC,2BAAAA,SAAkBD,OAAM,YAAYE,GAAG,EAAEC,QAAQ,WAAW,EAAA;EACrE,QAAQ;AACN,WAAOC,QAAQC,QAAQL,KAAAA;EACzB;AACF,GAEQM,YAAoCC,gBAAAA,QAApCD,WAAWE,aAAyBD,gBAAAA,QAAzBC,YAAYC,WAAaF,gBAAAA,QAAbE,UAEzBC,aAAa;EACjB;EACA;EACA;E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O;cAAE/C,MAAAA;YAAK,CAAA;;;iBAApB,OAAA,OAAA,KAAA,GAAtBoD,UAAsB,KAAtBA,SAASC,WAAa,KAAbA,UACXC,gBAAiB,GAAiC,OAA/BtD,UAAS,MAAM,WAAWA,OAAK,OAAA,GAClDuD,iBAAiBX,WAAY,cAA2B,OAAdU,aAAAA,CAAAA,GAC7B9C,WAAW+C,cAAAA,IAAkB;;YAAM9C,SAAS8C,gBAAgB,OAAA;cAA5D/C;;;;;wBAA6B,OAAA,KAAA;;;;;iBAA0C;;AAApFgD,uBAAAA,MACAC,QAAQD,cAAcV,UACzB3C,QAAS,qBAAoBiD,OAAAA,EAC7BjD,QACE,sBACA,GAAegD,OAAbE,UAAS;CAAA,EAAmD,OAA/CF,YAAa,UAAmB,OAAVA,WAAU,UAAA,IAAa,EAAA,CAAA,GAE3DO,WAAWd,WAAY,cAA2B,OAAdU,aAAAA,CAAAA,GAC1CM,eAAAA,QAAGoC,cAAcpD,WAAWc,QAAAA,GAAWD,IAAAA;;AAZpC,6CAAA;;;;;;;;;;sCAAA,oBAAA,IAAA,iBAAA;;;;;;aAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;gBAAA;oBAAA;;;;;;;;;;;EAcP,CAAA,GArFef,qBAAAA,MAAAA,MAAAA,SAAAA;;",
|
|
5
|
-
"names": ["resolveFile", "path", "importMetaResolve", "url", "replace", "require", "resolve", "ensureDir", "FSExtra", "existsSync", "readFile", "extensions", "build", "optionsIn", "options", "depsToOptimize", "buildConfig", "output", "getOptionsFilled", "mergeConfig", "getBaseViteConfig", "mode", "root", "clearScreen", "optimizeDeps", "include", "esbuildOptions", "resolveExtensions", "webConfig", "console", "info", "viteBuild", "plugins", "clientBundleTreeShakePlugin", "ssrManifest", "outDir", "alias", "format", "ssr", "noExternal", "cssCodeSplit", "rollupOptions", "external", "generateStaticPages", "serverOutput", "toAbsolute", "staticDir", "template", "render", "entry", "assets", "allRoutes", "cssString", "appHtml", "headHtml", "slashFileName", "clientHtmlPath", "clientHtml", "html", "filePath", "p", "fs", "readFileSync", "find", "x", "type", "facadeModuleId", "includes", "Promise", "all", "flatMap", "exported", "id", "file", "name", "endpointPath", "staticParams", "result", "getUrl", "params", "split", "map", "part", "found", "slice", "length", "warn", "join", "push", "basename", "fileName", "_state", "generateStaticParams", "flat", "filter", "endsWith", "source", "writeFileSync"]
|
|
6
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var cli_build_exports = {};
|
|
16
|
-
__export(cli_build_exports, {
|
|
17
|
-
default: () => cli_build_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(cli_build_exports);
|
|
20
|
-
var import_citty = require("citty"), import_build = require("../build"), import_readVXRNConfig = require("../utils/readVXRNConfig"), cli_build_default = (0, import_citty.defineCommand)({
|
|
21
|
-
meta: {
|
|
22
|
-
name: "build",
|
|
23
|
-
version: "0.0.0",
|
|
24
|
-
description: "Build your app"
|
|
25
|
-
},
|
|
26
|
-
args: {},
|
|
27
|
-
async run({ args }) {
|
|
28
|
-
const userConfig = await (0, import_readVXRNConfig.readVXRNConfig)();
|
|
29
|
-
process.on("uncaughtException", (err) => {
|
|
30
|
-
console.error(err?.message || err);
|
|
31
|
-
});
|
|
32
|
-
const results = await (0, import_build.build)(userConfig);
|
|
33
|
-
process.env.DEBUG && console.info("results", results);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=cli-build.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/commands/cli-build.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B,kBAC9B,eAAsB,qBACtB,wBAA+B,oCAExB,wBAAQ,4BAAc;AAAA,EAC3B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,aAAa;AAAA,EACf;AAAA,EACA,MAAM,CAAC;AAAA,EACP,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,UAAM,aAAa,UAAM,sCAAe;AAExC,YAAQ,GAAG,qBAAqB,CAAC,QAAQ;AACvC,cAAQ,MAAM,KAAK,WAAW,GAAG;AAAA,IACnC,CAAC;AAED,UAAM,UAAU,UAAM,oBAAM,UAAU;AAEtC,IAAI,QAAQ,IAAI,SACd,QAAQ,KAAK,WAAW,OAAO;AAAA,EAEnC;AACF,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var cli_build_exports = {};
|
|
17
|
-
__export(cli_build_exports, {
|
|
18
|
-
default: () => cli_build_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(cli_build_exports);
|
|
21
|
-
var import_citty = require("citty"), import_build = require("../build"), import_readVXRNConfig = require("../utils/readVXRNConfig");
|
|
22
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
23
|
-
try {
|
|
24
|
-
var info = gen[key](arg), value = info.value;
|
|
25
|
-
} catch (error) {
|
|
26
|
-
reject(error);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw);
|
|
30
|
-
}
|
|
31
|
-
function _async_to_generator(fn) {
|
|
32
|
-
return function() {
|
|
33
|
-
var self = this, args = arguments;
|
|
34
|
-
return new Promise(function(resolve, reject) {
|
|
35
|
-
var gen = fn.apply(self, args);
|
|
36
|
-
function _next(value) {
|
|
37
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
38
|
-
}
|
|
39
|
-
function _throw(err) {
|
|
40
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
41
|
-
}
|
|
42
|
-
_next(void 0);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function _ts_generator(thisArg, body) {
|
|
47
|
-
var f, y, t, g, _ = {
|
|
48
|
-
label: 0,
|
|
49
|
-
sent: function() {
|
|
50
|
-
if (t[0] & 1)
|
|
51
|
-
throw t[1];
|
|
52
|
-
return t[1];
|
|
53
|
-
},
|
|
54
|
-
trys: [],
|
|
55
|
-
ops: []
|
|
56
|
-
};
|
|
57
|
-
return g = {
|
|
58
|
-
next: verb(0),
|
|
59
|
-
throw: verb(1),
|
|
60
|
-
return: verb(2)
|
|
61
|
-
}, typeof Symbol == "function" && (g[Symbol.iterator] = function() {
|
|
62
|
-
return this;
|
|
63
|
-
}), g;
|
|
64
|
-
function verb(n) {
|
|
65
|
-
return function(v) {
|
|
66
|
-
return step([
|
|
67
|
-
n,
|
|
68
|
-
v
|
|
69
|
-
]);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function step(op) {
|
|
73
|
-
if (f)
|
|
74
|
-
throw new TypeError("Generator is already executing.");
|
|
75
|
-
for (; _; )
|
|
76
|
-
try {
|
|
77
|
-
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
78
|
-
return t;
|
|
79
|
-
switch (y = 0, t && (op = [
|
|
80
|
-
op[0] & 2,
|
|
81
|
-
t.value
|
|
82
|
-
]), op[0]) {
|
|
83
|
-
case 0:
|
|
84
|
-
case 1:
|
|
85
|
-
t = op;
|
|
86
|
-
break;
|
|
87
|
-
case 4:
|
|
88
|
-
return _.label++, {
|
|
89
|
-
value: op[1],
|
|
90
|
-
done: !1
|
|
91
|
-
};
|
|
92
|
-
case 5:
|
|
93
|
-
_.label++, y = op[1], op = [
|
|
94
|
-
0
|
|
95
|
-
];
|
|
96
|
-
continue;
|
|
97
|
-
case 7:
|
|
98
|
-
op = _.ops.pop(), _.trys.pop();
|
|
99
|
-
continue;
|
|
100
|
-
default:
|
|
101
|
-
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
102
|
-
_ = 0;
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
106
|
-
_.label = op[1];
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
110
|
-
_.label = t[1], t = op;
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
if (t && _.label < t[2]) {
|
|
114
|
-
_.label = t[2], _.ops.push(op);
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
t[2] && _.ops.pop(), _.trys.pop();
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
op = body.call(thisArg, _);
|
|
121
|
-
} catch (e) {
|
|
122
|
-
op = [
|
|
123
|
-
6,
|
|
124
|
-
e
|
|
125
|
-
], y = 0;
|
|
126
|
-
} finally {
|
|
127
|
-
f = t = 0;
|
|
128
|
-
}
|
|
129
|
-
if (op[0] & 5)
|
|
130
|
-
throw op[1];
|
|
131
|
-
return {
|
|
132
|
-
value: op[0] ? op[1] : void 0,
|
|
133
|
-
done: !0
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
var cli_build_default = (0, import_citty.defineCommand)({
|
|
138
|
-
meta: {
|
|
139
|
-
name: "build",
|
|
140
|
-
version: "0.0.0",
|
|
141
|
-
description: "Build your app"
|
|
142
|
-
},
|
|
143
|
-
args: {},
|
|
144
|
-
run: function(param) {
|
|
145
|
-
var args = param.args;
|
|
146
|
-
return _async_to_generator(function() {
|
|
147
|
-
var userConfig, results;
|
|
148
|
-
return _ts_generator(this, function(_state) {
|
|
149
|
-
switch (_state.label) {
|
|
150
|
-
case 0:
|
|
151
|
-
return [
|
|
152
|
-
4,
|
|
153
|
-
(0, import_readVXRNConfig.readVXRNConfig)()
|
|
154
|
-
];
|
|
155
|
-
case 1:
|
|
156
|
-
return userConfig = _state.sent(), process.on("uncaughtException", function(err) {
|
|
157
|
-
console.error((err == null ? void 0 : err.message) || err);
|
|
158
|
-
}), [
|
|
159
|
-
4,
|
|
160
|
-
(0, import_build.build)(userConfig)
|
|
161
|
-
];
|
|
162
|
-
case 2:
|
|
163
|
-
return results = _state.sent(), process.env.DEBUG && console.info("results", results), [
|
|
164
|
-
2
|
|
165
|
-
];
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
})();
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
//# sourceMappingURL=cli-build.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/commands/Users/n8/vxrn/packages/vxrn/src/commands/cli-build.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAA8B,kBAC9B,eAAsB,qBACtB,wBAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/B,IAAA,wBAAeA,4BAAc;EAC3BC,MAAM;IACJC,MAAM;IACNC,SAAS;IACTC,aAAa;EACf;EACAC,MAAM,CAAC;EACDC,KAAN,SAAU,OAAQ;QAAND,OAAF,MAAEA;WAAQ,oBAAA,WAAA;UACZE,YAMAC;;;;AANa,mBAAA;;kBAAMC,sCAAAA;;;AAAnBF,gCAAa,OAAA,KAAA,GAEnBG,QAAQC,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,sBAAQC,OAAMF,OAAAA,OAAAA,SAAAA,IAAKG,YAAWH,GAAAA;YAChC,CAAA,GAEgB;;kBAAMI,oBAAMT,UAAAA;;;AAAtBC,6BAAU,OAAA,KAAA,GAEZE,QAAQO,IAAIC,SACdL,QAAQM,KAAK,WAAWX,OAAAA;;;;;IAE5B,CAAA,EAAA;;AACF,CAAA;",
|
|
5
|
-
"names": ["defineCommand", "meta", "name", "version", "description", "args", "run", "userConfig", "results", "readVXRNConfig", "process", "on", "err", "console", "error", "message", "build", "env", "DEBUG", "info"]
|
|
6
|
-
}
|