@depup/nitro 3.0.260311-beta-depup.0
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/LICENSE +27 -0
- package/README.md +32 -0
- package/changes.json +14 -0
- package/dist/THIRD-PARTY-LICENSES.md +1646 -0
- package/dist/_build/common.mjs +29361 -0
- package/dist/_build/rolldown.mjs +173 -0
- package/dist/_build/rollup.mjs +194 -0
- package/dist/_build/vite.build.mjs +18 -0
- package/dist/_chunks/nitro.mjs +1159 -0
- package/dist/_chunks/nitro2.mjs +102 -0
- package/dist/_chunks/nitro3.mjs +129 -0
- package/dist/_chunks/utils.mjs +272 -0
- package/dist/_common.mjs +35 -0
- package/dist/_dev.d.mts +12 -0
- package/dist/_dev.mjs +519 -0
- package/dist/_libs/_.mjs +3 -0
- package/dist/_libs/_2.mjs +2 -0
- package/dist/_libs/_3.mjs +3 -0
- package/dist/_libs/_4.mjs +2 -0
- package/dist/_libs/_5.mjs +3 -0
- package/dist/_libs/_6.mjs +4 -0
- package/dist/_libs/_7.mjs +5 -0
- package/dist/_libs/c12+rc9.mjs +812 -0
- package/dist/_libs/c12+readdirp+chokidar.d.mts +230 -0
- package/dist/_libs/citty.mjs +361 -0
- package/dist/_libs/commondir+is-reference.mjs +1311 -0
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/compatx.mjs +45 -0
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/escape-string-regexp.mjs +7 -0
- package/dist/_libs/estree+pluginutils.d.mts +241 -0
- package/dist/_libs/estree-walker.mjs +184 -0
- package/dist/_libs/exsolve.d.mts +1 -0
- package/dist/_libs/hasown+resolve+deepmerge.mjs +1949 -0
- package/dist/_libs/httpxy.d.mts +82 -0
- package/dist/_libs/httpxy.mjs +671 -0
- package/dist/_libs/js-tokens.d.mts +1 -0
- package/dist/_libs/klona.mjs +37 -0
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/nypm+tinyexec.mjs +845 -0
- package/dist/_libs/perfect-debounce.mjs +88 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/plugin-alias.mjs +64 -0
- package/dist/_libs/plugin-inject.mjs +131 -0
- package/dist/_libs/plugin-json.mjs +34 -0
- package/dist/_libs/pluginutils.mjs +646 -0
- package/dist/_libs/readdirp+chokidar.mjs +1606 -0
- package/dist/_libs/remapping.mjs +115 -0
- package/dist/_libs/resolve-uri+gen-mapping.mjs +442 -0
- package/dist/_libs/rou3.d.mts +44 -0
- package/dist/_libs/rou3.mjs +496 -0
- package/dist/_libs/std-env.d.mts +12 -0
- package/dist/_libs/strip-literal.d.mts +1 -0
- package/dist/_libs/tsconfck.mjs +813 -0
- package/dist/_libs/ultrahtml.mjs +127 -0
- package/dist/_libs/unimport+unplugin.mjs +1684 -0
- package/dist/_libs/unplugin+unimport.d.mts +423 -0
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +1759 -0
- package/dist/builder.d.mts +64 -0
- package/dist/builder.mjs +15 -0
- package/dist/cli/_chunks/build.mjs +47 -0
- package/dist/cli/_chunks/common.mjs +14 -0
- package/dist/cli/_chunks/deploy.mjs +40 -0
- package/dist/cli/_chunks/dev.mjs +62 -0
- package/dist/cli/_chunks/docs.mjs +30 -0
- package/dist/cli/_chunks/list.mjs +25 -0
- package/dist/cli/_chunks/prepare.mjs +17 -0
- package/dist/cli/_chunks/preview.mjs +51 -0
- package/dist/cli/_chunks/run.mjs +53 -0
- package/dist/cli/_chunks/task.mjs +14 -0
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +22 -0
- package/dist/node_modules/@poppinss/colors/build/index.js +139 -0
- package/dist/node_modules/@poppinss/colors/package.json +118 -0
- package/dist/node_modules/@poppinss/dumper/build/chunk-26HALFTP.js +602 -0
- package/dist/node_modules/@poppinss/dumper/build/formatters/console/main.js +441 -0
- package/dist/node_modules/@poppinss/dumper/build/formatters/html/main.js +725 -0
- package/dist/node_modules/@poppinss/dumper/package.json +122 -0
- package/dist/node_modules/@poppinss/exception/build/index.js +44 -0
- package/dist/node_modules/@poppinss/exception/package.json +109 -0
- package/dist/node_modules/@sindresorhus/is/distribution/index.js +1354 -0
- package/dist/node_modules/@sindresorhus/is/distribution/utilities.js +3 -0
- package/dist/node_modules/@sindresorhus/is/package.json +81 -0
- package/dist/node_modules/@speed-highlight/core/dist/index.js +4 -0
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +2 -0
- package/dist/node_modules/@speed-highlight/core/package.json +94 -0
- package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
- package/dist/node_modules/cookie-es/package.json +37 -0
- package/dist/node_modules/croner/dist/croner.js +1 -0
- package/dist/node_modules/croner/package.json +73 -0
- package/dist/node_modules/defu/dist/defu.mjs +69 -0
- package/dist/node_modules/defu/package.json +43 -0
- package/dist/node_modules/destr/dist/index.mjs +72 -0
- package/dist/node_modules/destr/package.json +47 -0
- package/dist/node_modules/error-stack-parser-es/dist/index.mjs +38 -0
- package/dist/node_modules/error-stack-parser-es/dist/lite.mjs +167 -0
- package/dist/node_modules/error-stack-parser-es/package.json +83 -0
- package/dist/node_modules/get-port-please/dist/index.mjs +430 -0
- package/dist/node_modules/get-port-please/package.json +39 -0
- package/dist/node_modules/kleur/index.mjs +110 -0
- package/dist/node_modules/kleur/package.json +51 -0
- package/dist/node_modules/rendu/dist/index.mjs +380 -0
- package/dist/node_modules/rendu/package.json +47 -0
- package/dist/node_modules/scule/dist/index.mjs +80 -0
- package/dist/node_modules/scule/package.json +43 -0
- package/dist/node_modules/source-map/lib/array-set.js +100 -0
- package/dist/node_modules/source-map/lib/base64-vlq.js +94 -0
- package/dist/node_modules/source-map/lib/base64.js +19 -0
- package/dist/node_modules/source-map/lib/binary-search.js +113 -0
- package/dist/node_modules/source-map/lib/mapping-list.js +83 -0
- package/dist/node_modules/source-map/lib/mappings.wasm +0 -0
- package/dist/node_modules/source-map/lib/read-wasm.js +27 -0
- package/dist/node_modules/source-map/lib/source-map-consumer.js +1081 -0
- package/dist/node_modules/source-map/lib/source-map-generator.js +439 -0
- package/dist/node_modules/source-map/lib/source-node.js +430 -0
- package/dist/node_modules/source-map/lib/url.js +13 -0
- package/dist/node_modules/source-map/lib/util.js +444 -0
- package/dist/node_modules/source-map/lib/wasm.js +138 -0
- package/dist/node_modules/source-map/package.json +79 -0
- package/dist/node_modules/source-map/source-map.js +10 -0
- package/dist/node_modules/supports-color/index.js +202 -0
- package/dist/node_modules/supports-color/package.json +64 -0
- package/dist/node_modules/ufo/dist/index.mjs +645 -0
- package/dist/node_modules/ufo/package.json +48 -0
- package/dist/node_modules/unctx/dist/index.mjs +131 -0
- package/dist/node_modules/unctx/package.json +67 -0
- package/dist/node_modules/youch/build/helpers-B9BQYaS6.js +23 -0
- package/dist/node_modules/youch/build/index.js +212 -0
- package/dist/node_modules/youch/build/public/error_cause/style.css +5 -0
- package/dist/node_modules/youch/build/public/error_info/script.js +13 -0
- package/dist/node_modules/youch/build/public/error_info/style.css +145 -0
- package/dist/node_modules/youch/build/public/error_metadata/style.css +3 -0
- package/dist/node_modules/youch/build/public/error_stack/script.js +72 -0
- package/dist/node_modules/youch/build/public/error_stack/style.css +219 -0
- package/dist/node_modules/youch/build/public/error_stack_source/style.css +123 -0
- package/dist/node_modules/youch/build/public/header/script.js +14 -0
- package/dist/node_modules/youch/build/public/header/style.css +56 -0
- package/dist/node_modules/youch/build/public/layout/script.js +12 -0
- package/dist/node_modules/youch/build/public/layout/style.css +435 -0
- package/dist/node_modules/youch/build/public_dir-C5bujZKB.js +25 -0
- package/dist/node_modules/youch/build/src/templates/error_cause/main.js +44 -0
- package/dist/node_modules/youch/build/src/templates/error_info/main.js +72 -0
- package/dist/node_modules/youch/build/src/templates/error_metadata/main.js +65 -0
- package/dist/node_modules/youch/build/src/templates/error_stack/main.js +152 -0
- package/dist/node_modules/youch/build/src/templates/error_stack_source/main.js +46 -0
- package/dist/node_modules/youch/build/src/templates/header/main.js +24 -0
- package/dist/node_modules/youch/build/src/templates/layout/main.js +27 -0
- package/dist/node_modules/youch/package.json +135 -0
- package/dist/node_modules/youch-core/build/index.js +316 -0
- package/dist/node_modules/youch-core/package.json +124 -0
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +20 -0
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +15 -0
- package/dist/presets/_nitro/runtime/service-worker.mjs +23 -0
- package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +14 -0
- package/dist/presets/aws-lambda/runtime/_utils.mjs +116 -0
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +31 -0
- package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +13 -0
- package/dist/presets/azure/runtime/_utils.mjs +50 -0
- package/dist/presets/azure/runtime/azure-swa.mjs +30 -0
- package/dist/presets/bun/runtime/bun.mjs +40 -0
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +87 -0
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +72 -0
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +17 -0
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +39 -0
- package/dist/presets/cloudflare/runtime/plugin.dev.mjs +96 -0
- package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
- package/dist/presets/deno/runtime/deno-deploy.mjs +19 -0
- package/dist/presets/deno/runtime/deno-server.mjs +39 -0
- package/dist/presets/netlify/runtime/netlify-edge.mjs +20 -0
- package/dist/presets/netlify/runtime/netlify.mjs +20 -0
- package/dist/presets/node/runtime/node-cluster.mjs +54 -0
- package/dist/presets/node/runtime/node-middleware.mjs +14 -0
- package/dist/presets/node/runtime/node-server.mjs +47 -0
- package/dist/presets/standard/runtime/server.mjs +4 -0
- package/dist/presets/stormkit/runtime/stormkit.mjs +27 -0
- package/dist/presets/vercel/runtime/cron-handler.mjs +25 -0
- package/dist/presets/vercel/runtime/isr.mjs +19 -0
- package/dist/presets/vercel/runtime/vercel.node.mjs +24 -0
- package/dist/presets/vercel/runtime/vercel.web.mjs +23 -0
- package/dist/presets/winterjs/runtime/winterjs.mjs +91 -0
- package/dist/presets/zeabur/runtime/zeabur.mjs +4 -0
- package/dist/presets/zephyr/runtime/server.mjs +3 -0
- package/dist/runtime/app.d.mts +1 -0
- package/dist/runtime/app.mjs +1 -0
- package/dist/runtime/cache.d.mts +1 -0
- package/dist/runtime/cache.mjs +1 -0
- package/dist/runtime/config.d.mts +3 -0
- package/dist/runtime/config.mjs +4 -0
- package/dist/runtime/context.d.mts +1 -0
- package/dist/runtime/context.mjs +1 -0
- package/dist/runtime/database.d.mts +1 -0
- package/dist/runtime/database.mjs +1 -0
- package/dist/runtime/internal/app.d.mts +16 -0
- package/dist/runtime/internal/app.mjs +208 -0
- package/dist/runtime/internal/cache.d.mts +7 -0
- package/dist/runtime/internal/cache.mjs +41 -0
- package/dist/runtime/internal/context.d.mts +14 -0
- package/dist/runtime/internal/context.mjs +24 -0
- package/dist/runtime/internal/database.d.mts +2 -0
- package/dist/runtime/internal/database.mjs +12 -0
- package/dist/runtime/internal/empty.mjs +0 -0
- package/dist/runtime/internal/error/dev.d.mts +10 -0
- package/dist/runtime/internal/error/dev.mjs +121 -0
- package/dist/runtime/internal/error/hooks.d.mts +1 -0
- package/dist/runtime/internal/error/hooks.mjs +9 -0
- package/dist/runtime/internal/error/prod.d.mts +6 -0
- package/dist/runtime/internal/error/prod.mjs +40 -0
- package/dist/runtime/internal/error/utils.d.mts +8 -0
- package/dist/runtime/internal/error/utils.mjs +3 -0
- package/dist/runtime/internal/meta.d.mts +2 -0
- package/dist/runtime/internal/meta.mjs +3 -0
- package/dist/runtime/internal/plugin.d.mts +3 -0
- package/dist/runtime/internal/plugin.mjs +4 -0
- package/dist/runtime/internal/route-rules.d.mts +9 -0
- package/dist/runtime/internal/route-rules.mjs +72 -0
- package/dist/runtime/internal/routes/dev-tasks.d.mts +3 -0
- package/dist/runtime/internal/routes/dev-tasks.mjs +25 -0
- package/dist/runtime/internal/routes/openapi.d.mts +3 -0
- package/dist/runtime/internal/routes/openapi.mjs +94 -0
- package/dist/runtime/internal/routes/renderer-template.d.mts +2 -0
- package/dist/runtime/internal/routes/renderer-template.dev.d.mts +3 -0
- package/dist/runtime/internal/routes/renderer-template.dev.mjs +19 -0
- package/dist/runtime/internal/routes/renderer-template.mjs +4 -0
- package/dist/runtime/internal/routes/scalar.d.mts +3 -0
- package/dist/runtime/internal/routes/scalar.mjs +193 -0
- package/dist/runtime/internal/routes/swagger.d.mts +3 -0
- package/dist/runtime/internal/routes/swagger.mjs +42 -0
- package/dist/runtime/internal/runtime-config.d.mts +9 -0
- package/dist/runtime/internal/runtime-config.mjs +54 -0
- package/dist/runtime/internal/static.d.mts +3 -0
- package/dist/runtime/internal/static.mjs +67 -0
- package/dist/runtime/internal/storage.d.mts +2 -0
- package/dist/runtime/internal/storage.mjs +6 -0
- package/dist/runtime/internal/task.d.mts +19 -0
- package/dist/runtime/internal/task.mjs +69 -0
- package/dist/runtime/internal/vite/dev-entry.mjs +18 -0
- package/dist/runtime/internal/vite/dev-worker.mjs +264 -0
- package/dist/runtime/internal/vite/ssr-renderer.mjs +6 -0
- package/dist/runtime/meta.d.mts +5 -0
- package/dist/runtime/meta.mjs +27 -0
- package/dist/runtime/nitro.d.mts +11 -0
- package/dist/runtime/nitro.mjs +34 -0
- package/dist/runtime/runtime-config.d.mts +1 -0
- package/dist/runtime/runtime-config.mjs +1 -0
- package/dist/runtime/storage.d.mts +1 -0
- package/dist/runtime/storage.mjs +1 -0
- package/dist/runtime/task.d.mts +1 -0
- package/dist/runtime/task.mjs +1 -0
- package/dist/runtime/virtual/_runtime_warn.d.mts +1 -0
- package/dist/runtime/virtual/_runtime_warn.mjs +5 -0
- package/dist/runtime/virtual/database.d.mts +8 -0
- package/dist/runtime/virtual/database.mjs +2 -0
- package/dist/runtime/virtual/error-handler.d.mts +6 -0
- package/dist/runtime/virtual/error-handler.mjs +9 -0
- package/dist/runtime/virtual/feature-flags.d.mts +7 -0
- package/dist/runtime/virtual/feature-flags.mjs +7 -0
- package/dist/runtime/virtual/plugins.d.mts +3 -0
- package/dist/runtime/virtual/plugins.mjs +2 -0
- package/dist/runtime/virtual/polyfills.d.mts +3 -0
- package/dist/runtime/virtual/polyfills.mjs +2 -0
- package/dist/runtime/virtual/public-assets.d.mts +9 -0
- package/dist/runtime/virtual/public-assets.mjs +8 -0
- package/dist/runtime/virtual/renderer-template.d.mts +4 -0
- package/dist/runtime/virtual/renderer-template.mjs +7 -0
- package/dist/runtime/virtual/routing-meta.d.mts +7 -0
- package/dist/runtime/virtual/routing-meta.mjs +2 -0
- package/dist/runtime/virtual/routing.d.mts +8 -0
- package/dist/runtime/virtual/routing.mjs +11 -0
- package/dist/runtime/virtual/runtime-config.d.mts +3 -0
- package/dist/runtime/virtual/runtime-config.mjs +5 -0
- package/dist/runtime/virtual/server-assets.d.mts +7 -0
- package/dist/runtime/virtual/server-assets.mjs +12 -0
- package/dist/runtime/virtual/storage.d.mts +3 -0
- package/dist/runtime/virtual/storage.mjs +5 -0
- package/dist/runtime/virtual/tasks.d.mts +10 -0
- package/dist/runtime/virtual/tasks.mjs +3 -0
- package/dist/runtime/vite.d.mts +8 -0
- package/dist/runtime/vite.mjs +9 -0
- package/dist/types/index.d.mts +3010 -0
- package/dist/types/index.mjs +1 -0
- package/dist/vite.d.mts +52 -0
- package/dist/vite.mjs +740 -0
- package/lib/h3.d.mts +1 -0
- package/lib/h3.mjs +1 -0
- package/lib/tsconfig.json +27 -0
- package/lib/vite.types.d.mts +26 -0
- package/lib/vite.types.mjs +2 -0
- package/package.json +256 -0
- package/skills/nitro/SKILL.md +10 -0
- package/skills/nitro/docs/TOC.md +83 -0
- package/skills/nitro/docs/_navigation.json +679 -0
- package/skills/nitro/docs/config/index.md +1147 -0
- package/skills/nitro/docs/deploy/index.md +64 -0
- package/skills/nitro/docs/deploy/providers/alwaysdata.md +50 -0
- package/skills/nitro/docs/deploy/providers/aws-amplify.md +81 -0
- package/skills/nitro/docs/deploy/providers/aws.md +47 -0
- package/skills/nitro/docs/deploy/providers/azure.md +72 -0
- package/skills/nitro/docs/deploy/providers/cleavr.md +33 -0
- package/skills/nitro/docs/deploy/providers/cloudflare.md +375 -0
- package/skills/nitro/docs/deploy/providers/deno-deploy.md +66 -0
- package/skills/nitro/docs/deploy/providers/digitalocean.md +46 -0
- package/skills/nitro/docs/deploy/providers/firebase.md +32 -0
- package/skills/nitro/docs/deploy/providers/flightcontrol.md +67 -0
- package/skills/nitro/docs/deploy/providers/genezio.md +67 -0
- package/skills/nitro/docs/deploy/providers/github-pages.md +68 -0
- package/skills/nitro/docs/deploy/providers/gitlab-pages.md +37 -0
- package/skills/nitro/docs/deploy/providers/heroku.md +84 -0
- package/skills/nitro/docs/deploy/providers/iis.md +38 -0
- package/skills/nitro/docs/deploy/providers/koyeb.md +109 -0
- package/skills/nitro/docs/deploy/providers/netlify.md +47 -0
- package/skills/nitro/docs/deploy/providers/platform-sh.md +37 -0
- package/skills/nitro/docs/deploy/providers/render.md +37 -0
- package/skills/nitro/docs/deploy/providers/stormkit.md +24 -0
- package/skills/nitro/docs/deploy/providers/vercel.md +179 -0
- package/skills/nitro/docs/deploy/providers/zeabur.md +19 -0
- package/skills/nitro/docs/deploy/providers/zephyr.md +99 -0
- package/skills/nitro/docs/deploy/providers/zerops.md +102 -0
- package/skills/nitro/docs/deploy/runtimes/bun.md +15 -0
- package/skills/nitro/docs/deploy/runtimes/deno.md +19 -0
- package/skills/nitro/docs/deploy/runtimes/node.md +63 -0
- package/skills/nitro/docs/docs/assets.md +166 -0
- package/skills/nitro/docs/docs/cache.md +408 -0
- package/skills/nitro/docs/docs/configuration.md +256 -0
- package/skills/nitro/docs/docs/database.md +185 -0
- package/skills/nitro/docs/docs/index.md +56 -0
- package/skills/nitro/docs/docs/lifecycle.md +204 -0
- package/skills/nitro/docs/docs/migration.md +215 -0
- package/skills/nitro/docs/docs/nightly.md +31 -0
- package/skills/nitro/docs/docs/plugins.md +164 -0
- package/skills/nitro/docs/docs/quick-start.md +110 -0
- package/skills/nitro/docs/docs/renderer.md +322 -0
- package/skills/nitro/docs/docs/routing.md +711 -0
- package/skills/nitro/docs/docs/server-entry.md +239 -0
- package/skills/nitro/docs/docs/storage.md +261 -0
- package/skills/nitro/docs/docs/tasks.md +277 -0
- package/skills/nitro/docs/examples/api-routes.md +145 -0
- package/skills/nitro/docs/examples/auto-imports.md +93 -0
- package/skills/nitro/docs/examples/cached-handler.md +81 -0
- package/skills/nitro/docs/examples/custom-error-handler.md +98 -0
- package/skills/nitro/docs/examples/database.md +157 -0
- package/skills/nitro/docs/examples/elysia.md +70 -0
- package/skills/nitro/docs/examples/express.md +78 -0
- package/skills/nitro/docs/examples/fastify.md +79 -0
- package/skills/nitro/docs/examples/hello-world.md +68 -0
- package/skills/nitro/docs/examples/hono.md +74 -0
- package/skills/nitro/docs/examples/import-alias.md +100 -0
- package/skills/nitro/docs/examples/index.md +3 -0
- package/skills/nitro/docs/examples/middleware.md +91 -0
- package/skills/nitro/docs/examples/mono-jsx.md +68 -0
- package/skills/nitro/docs/examples/nano-jsx.md +70 -0
- package/skills/nitro/docs/examples/plugins.md +91 -0
- package/skills/nitro/docs/examples/renderer.md +113 -0
- package/skills/nitro/docs/examples/runtime-config.md +97 -0
- package/skills/nitro/docs/examples/server-fetch.md +87 -0
- package/skills/nitro/docs/examples/shiki.md +198 -0
- package/skills/nitro/docs/examples/virtual-routes.md +74 -0
- package/skills/nitro/docs/examples/vite-nitro-plugin.md +79 -0
- package/skills/nitro/docs/examples/vite-rsc.md +1041 -0
- package/skills/nitro/docs/examples/vite-ssr-html.md +217 -0
- package/skills/nitro/docs/examples/vite-ssr-preact.md +247 -0
- package/skills/nitro/docs/examples/vite-ssr-react.md +226 -0
- package/skills/nitro/docs/examples/vite-ssr-solid.md +256 -0
- package/skills/nitro/docs/examples/vite-ssr-tsr-react.md +442 -0
- package/skills/nitro/docs/examples/vite-ssr-tss-react.md +444 -0
- package/skills/nitro/docs/examples/vite-ssr-vue-router.md +616 -0
- package/skills/nitro/docs/examples/vite-trpc.md +335 -0
- package/skills/nitro/docs/examples/websocket.md +282 -0
- package/skills/nitro/docs/index.md +121 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { _ as writeTypes, ct as join, d as libChunkName, f as baseBuildConfig, h as writeBuildInfo, it as basename, l as NODE_MODULES_RE, n as baseBuildPlugins, u as getChunkName, ut as relative } from "./common.mjs";
|
|
2
|
+
import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
|
|
3
|
+
import { n as scanHandlers } from "../_chunks/nitro2.mjs";
|
|
4
|
+
import { n as watch } from "../_libs/readdirp+chokidar.mjs";
|
|
5
|
+
import { t as debounce } from "../_libs/perfect-debounce.mjs";
|
|
6
|
+
import { n as generateFSTree } from "../_chunks/utils.mjs";
|
|
7
|
+
import { builtinModules } from "node:module";
|
|
8
|
+
import { defu } from "defu";
|
|
9
|
+
//#region src/build/rolldown/config.ts
|
|
10
|
+
const getRolldownConfig = async (nitro) => {
|
|
11
|
+
const base = baseBuildConfig(nitro);
|
|
12
|
+
const tsc = nitro.options.typescript.tsConfig?.compilerOptions;
|
|
13
|
+
let config = {
|
|
14
|
+
platform: nitro.options.node ? "node" : "neutral",
|
|
15
|
+
cwd: nitro.options.rootDir,
|
|
16
|
+
input: nitro.options.entry,
|
|
17
|
+
external: [
|
|
18
|
+
...base.env.external,
|
|
19
|
+
...builtinModules,
|
|
20
|
+
...builtinModules.map((m) => `node:${m}`)
|
|
21
|
+
],
|
|
22
|
+
plugins: [...await baseBuildPlugins(nitro, base)],
|
|
23
|
+
resolve: {
|
|
24
|
+
alias: base.aliases,
|
|
25
|
+
extensions: base.extensions,
|
|
26
|
+
conditionNames: nitro.options.exportConditions
|
|
27
|
+
},
|
|
28
|
+
transform: {
|
|
29
|
+
inject: base.env.inject,
|
|
30
|
+
jsx: {
|
|
31
|
+
runtime: tsc?.jsx === "react" ? "classic" : "automatic",
|
|
32
|
+
pragma: tsc?.jsxFactory,
|
|
33
|
+
pragmaFrag: tsc?.jsxFragmentFactory,
|
|
34
|
+
importSource: tsc?.jsxImportSource,
|
|
35
|
+
development: nitro.options.dev
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
onwarn(warning, warn) {
|
|
39
|
+
if (!base.ignoreWarningCodes.has(warning.code || "")) {
|
|
40
|
+
console.log(warning.code);
|
|
41
|
+
warn(warning);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
treeshake: { moduleSideEffects(id) {
|
|
45
|
+
return nitro.options.moduleSideEffects.some((p) => id.startsWith(p));
|
|
46
|
+
} },
|
|
47
|
+
optimization: { inlineConst: true },
|
|
48
|
+
output: {
|
|
49
|
+
format: "esm",
|
|
50
|
+
entryFileNames: "index.mjs",
|
|
51
|
+
chunkFileNames: (chunk) => getChunkName(chunk, nitro),
|
|
52
|
+
codeSplitting: { groups: [{
|
|
53
|
+
test: NODE_MODULES_RE,
|
|
54
|
+
name: (id) => libChunkName(id)
|
|
55
|
+
}] },
|
|
56
|
+
dir: nitro.options.output.serverDir,
|
|
57
|
+
inlineDynamicImports: nitro.options.inlineDynamicImports,
|
|
58
|
+
minify: nitro.options.minify ? true : "dce-only",
|
|
59
|
+
sourcemap: nitro.options.sourcemap,
|
|
60
|
+
sourcemapIgnoreList(relativePath) {
|
|
61
|
+
return relativePath.includes("node_modules");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
config = defu(nitro.options.rolldownConfig, nitro.options.rollupConfig, config);
|
|
66
|
+
const outputConfig = config.output;
|
|
67
|
+
if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") {
|
|
68
|
+
delete outputConfig.inlineDynamicImports;
|
|
69
|
+
outputConfig.codeSplitting = false;
|
|
70
|
+
}
|
|
71
|
+
return config;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/build/rolldown/dev.ts
|
|
75
|
+
async function watchDev(nitro, config) {
|
|
76
|
+
const rolldown = await import("rolldown");
|
|
77
|
+
let watcher;
|
|
78
|
+
async function load() {
|
|
79
|
+
if (watcher) await watcher.close();
|
|
80
|
+
await scanHandlers(nitro);
|
|
81
|
+
nitro.routing.sync();
|
|
82
|
+
watcher = startWatcher(nitro, config);
|
|
83
|
+
await writeTypes(nitro);
|
|
84
|
+
}
|
|
85
|
+
const reload = debounce(load);
|
|
86
|
+
const scanDirs = nitro.options.scanDirs.flatMap((dir) => [
|
|
87
|
+
join(dir, nitro.options.apiDir || "api"),
|
|
88
|
+
join(dir, nitro.options.routesDir || "routes"),
|
|
89
|
+
join(dir, "middleware"),
|
|
90
|
+
join(dir, "plugins"),
|
|
91
|
+
join(dir, "modules")
|
|
92
|
+
]);
|
|
93
|
+
const watchReloadEvents = new Set([
|
|
94
|
+
"add",
|
|
95
|
+
"addDir",
|
|
96
|
+
"unlink",
|
|
97
|
+
"unlinkDir"
|
|
98
|
+
]);
|
|
99
|
+
const scanDirsWatcher = watch(scanDirs, { ignoreInitial: true }).on("all", (event) => {
|
|
100
|
+
if (watchReloadEvents.has(event)) reload();
|
|
101
|
+
});
|
|
102
|
+
const serverEntryRe = /^server\.[mc]?[jt]sx?$/;
|
|
103
|
+
const rootDirWatcher = watch(nitro.options.rootDir, {
|
|
104
|
+
ignoreInitial: true,
|
|
105
|
+
depth: 0
|
|
106
|
+
}).on("all", (event, path) => {
|
|
107
|
+
if (watchReloadEvents.has(event) && serverEntryRe.test(basename(path))) reload();
|
|
108
|
+
});
|
|
109
|
+
nitro.hooks.hook("close", () => {
|
|
110
|
+
watcher.close();
|
|
111
|
+
scanDirsWatcher.close();
|
|
112
|
+
rootDirWatcher.close();
|
|
113
|
+
});
|
|
114
|
+
nitro.hooks.hook("rollup:reload", () => reload());
|
|
115
|
+
nitro.logger.info(`Starting dev watcher (builder: \`rolldown\`, preset: \`${nitro.options.preset}\`, compatibility date: \`${formatCompatibilityDate(nitro.options.compatibilityDate)}\`)`);
|
|
116
|
+
await load();
|
|
117
|
+
function startWatcher(nitro, config) {
|
|
118
|
+
const watcher = rolldown.watch(config);
|
|
119
|
+
let start;
|
|
120
|
+
watcher.on("event", (event) => {
|
|
121
|
+
switch (event.code) {
|
|
122
|
+
case "START":
|
|
123
|
+
start = Date.now();
|
|
124
|
+
nitro.hooks.callHook("dev:start");
|
|
125
|
+
break;
|
|
126
|
+
case "BUNDLE_END":
|
|
127
|
+
nitro.hooks.callHook("compiled", nitro);
|
|
128
|
+
if (nitro.options.logging.buildSuccess) nitro.logger.success(`Server built`, start ? `in ${Date.now() - start}ms` : "");
|
|
129
|
+
nitro.hooks.callHook("dev:reload");
|
|
130
|
+
break;
|
|
131
|
+
case "ERROR":
|
|
132
|
+
nitro.logger.error(event.error);
|
|
133
|
+
nitro.hooks.callHook("dev:error", event.error);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
return watcher;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region src/build/rolldown/prod.ts
|
|
141
|
+
async function buildProduction(nitro, config) {
|
|
142
|
+
const rolldown = await import("rolldown");
|
|
143
|
+
const buildStartTime = Date.now();
|
|
144
|
+
await scanHandlers(nitro);
|
|
145
|
+
await writeTypes(nitro);
|
|
146
|
+
let output;
|
|
147
|
+
if (!nitro.options.static) {
|
|
148
|
+
nitro.logger.info(`Building server (builder: \`rolldown\`, preset: \`${nitro.options.preset}\`, compatibility date: \`${formatCompatibilityDate(nitro.options.compatibilityDate)}\`)`);
|
|
149
|
+
output = await (await rolldown.rolldown(config)).write(config.output);
|
|
150
|
+
}
|
|
151
|
+
const buildInfo = await writeBuildInfo(nitro, output);
|
|
152
|
+
if (!nitro.options.static) {
|
|
153
|
+
if (nitro.options.logging.buildSuccess) nitro.logger.success(`Server built in ${Date.now() - buildStartTime}ms`);
|
|
154
|
+
if (nitro.options.logLevel > 1) process.stdout.write(await generateFSTree(nitro.options.output.serverDir, { compressedSizes: nitro.options.logging.compressedSizes }) || "");
|
|
155
|
+
}
|
|
156
|
+
await nitro.hooks.callHook("compiled", nitro);
|
|
157
|
+
const rOutput = relative(process.cwd(), nitro.options.output.dir);
|
|
158
|
+
const rewriteRelativePaths = (input) => {
|
|
159
|
+
return input.replace(/([\s:])\.\/(\S*)/g, `$1${rOutput}/$2`);
|
|
160
|
+
};
|
|
161
|
+
nitro.logger.success("You can preview this build using `npx nitro preview`");
|
|
162
|
+
if (buildInfo.commands.deploy) nitro.logger.success(rewriteRelativePaths("You can deploy this build using `npx nitro deploy --prebuilt`"));
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/build/rolldown/build.ts
|
|
166
|
+
async function rolldownBuild(nitro) {
|
|
167
|
+
await nitro.hooks.callHook("build:before", nitro);
|
|
168
|
+
const config = await getRolldownConfig(nitro);
|
|
169
|
+
await nitro.hooks.callHook("rollup:before", nitro, config);
|
|
170
|
+
return nitro.options.dev ? watchDev(nitro, config) : buildProduction(nitro, config);
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
export { rolldownBuild };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { _ as writeTypes, ct as join, d as libChunkName, f as baseBuildConfig, h as writeBuildInfo, it as basename, l as NODE_MODULES_RE, n as baseBuildPlugins, st as isAbsolute, t as oxc, u as getChunkName, ut as relative } from "./common.mjs";
|
|
2
|
+
import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
|
|
3
|
+
import { n as scanHandlers } from "../_chunks/nitro2.mjs";
|
|
4
|
+
import { n as watch } from "../_libs/readdirp+chokidar.mjs";
|
|
5
|
+
import { t as debounce } from "../_libs/perfect-debounce.mjs";
|
|
6
|
+
import { t as alias } from "../_libs/plugin-alias.mjs";
|
|
7
|
+
import { t as inject } from "../_libs/plugin-inject.mjs";
|
|
8
|
+
import { n as generateFSTree } from "../_chunks/utils.mjs";
|
|
9
|
+
import { t as commonjs } from "../_libs/commondir+is-reference.mjs";
|
|
10
|
+
import { t as json } from "../_libs/plugin-json.mjs";
|
|
11
|
+
import { t as nodeResolve } from "../_libs/hasown+resolve+deepmerge.mjs";
|
|
12
|
+
import { defu } from "defu";
|
|
13
|
+
//#region src/build/rollup/config.ts
|
|
14
|
+
const getRollupConfig = async (nitro) => {
|
|
15
|
+
const base = baseBuildConfig(nitro);
|
|
16
|
+
const tsc = nitro.options.typescript.tsConfig?.compilerOptions;
|
|
17
|
+
let config = {
|
|
18
|
+
input: nitro.options.entry,
|
|
19
|
+
external: [...base.env.external],
|
|
20
|
+
plugins: [
|
|
21
|
+
...await baseBuildPlugins(nitro, base),
|
|
22
|
+
await oxc({
|
|
23
|
+
sourcemap: !!nitro.options.sourcemap,
|
|
24
|
+
minify: nitro.options.minify ? { ...nitro.options.oxc?.minify } : false,
|
|
25
|
+
transform: {
|
|
26
|
+
target: "esnext",
|
|
27
|
+
cwd: nitro.options.rootDir,
|
|
28
|
+
...nitro.options.oxc?.transform,
|
|
29
|
+
jsx: {
|
|
30
|
+
runtime: tsc?.jsx === "react" ? "classic" : "automatic",
|
|
31
|
+
pragma: tsc?.jsxFactory,
|
|
32
|
+
pragmaFrag: tsc?.jsxFragmentFactory,
|
|
33
|
+
importSource: tsc?.jsxImportSource,
|
|
34
|
+
development: nitro.options.dev,
|
|
35
|
+
...nitro.options.oxc?.transform?.jsx
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}),
|
|
39
|
+
alias({ entries: base.aliases }),
|
|
40
|
+
nodeResolve({
|
|
41
|
+
extensions: base.extensions,
|
|
42
|
+
preferBuiltins: !!nitro.options.node,
|
|
43
|
+
rootDir: nitro.options.rootDir,
|
|
44
|
+
exportConditions: nitro.options.exportConditions
|
|
45
|
+
}),
|
|
46
|
+
commonjs({ ...nitro.options.commonJS }),
|
|
47
|
+
json(),
|
|
48
|
+
inject(base.env.inject)
|
|
49
|
+
],
|
|
50
|
+
onwarn(warning, rollupWarn) {
|
|
51
|
+
if (!base.ignoreWarningCodes.has(warning.code || "")) rollupWarn(warning);
|
|
52
|
+
},
|
|
53
|
+
treeshake: { moduleSideEffects(id) {
|
|
54
|
+
return nitro.options.moduleSideEffects.some((p) => id.startsWith(p));
|
|
55
|
+
} },
|
|
56
|
+
output: {
|
|
57
|
+
format: "esm",
|
|
58
|
+
entryFileNames: "index.mjs",
|
|
59
|
+
chunkFileNames: (chunk) => getChunkName(chunk, nitro),
|
|
60
|
+
dir: nitro.options.output.serverDir,
|
|
61
|
+
inlineDynamicImports: nitro.options.inlineDynamicImports,
|
|
62
|
+
generatedCode: { constBindings: true },
|
|
63
|
+
sourcemap: nitro.options.sourcemap,
|
|
64
|
+
sourcemapExcludeSources: true,
|
|
65
|
+
sourcemapIgnoreList: (id) => id.includes("node_modules"),
|
|
66
|
+
manualChunks(id) {
|
|
67
|
+
if (NODE_MODULES_RE.test(id)) return libChunkName(id);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
config = defu(nitro.options.rollupConfig, config);
|
|
72
|
+
const outputConfig = config.output;
|
|
73
|
+
if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") delete outputConfig.manualChunks;
|
|
74
|
+
return config;
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/build/rollup/error.ts
|
|
78
|
+
function formatRollupError(_error) {
|
|
79
|
+
try {
|
|
80
|
+
const logs = [_error.toString()];
|
|
81
|
+
const errors = _error?.errors || [_error];
|
|
82
|
+
for (const error of errors) {
|
|
83
|
+
const id = error.path || error.id || _error.id;
|
|
84
|
+
let path = isAbsolute(id) ? relative(process.cwd(), id) : id;
|
|
85
|
+
const location = error.loc;
|
|
86
|
+
if (location) path += `:${location.line}:${location.column}`;
|
|
87
|
+
const text = error.frame;
|
|
88
|
+
logs.push(`Rollup error while processing \`${path}\`` + text ? "\n\n" + text : "");
|
|
89
|
+
}
|
|
90
|
+
return logs.join("\n");
|
|
91
|
+
} catch {
|
|
92
|
+
return _error?.toString();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/build/rollup/dev.ts
|
|
97
|
+
async function watchDev(nitro, rollupConfig) {
|
|
98
|
+
const rollup = await import("rollup");
|
|
99
|
+
let rollupWatcher;
|
|
100
|
+
async function load() {
|
|
101
|
+
if (rollupWatcher) await rollupWatcher.close();
|
|
102
|
+
await scanHandlers(nitro);
|
|
103
|
+
nitro.routing.sync();
|
|
104
|
+
rollupWatcher = startRollupWatcher(nitro, rollupConfig);
|
|
105
|
+
await writeTypes(nitro);
|
|
106
|
+
}
|
|
107
|
+
const reload = debounce(load);
|
|
108
|
+
const scanDirs = nitro.options.scanDirs.flatMap((dir) => [
|
|
109
|
+
join(dir, nitro.options.apiDir || "api"),
|
|
110
|
+
join(dir, nitro.options.routesDir || "routes"),
|
|
111
|
+
join(dir, "middleware"),
|
|
112
|
+
join(dir, "plugins"),
|
|
113
|
+
join(dir, "modules")
|
|
114
|
+
]);
|
|
115
|
+
const watchReloadEvents = new Set([
|
|
116
|
+
"add",
|
|
117
|
+
"addDir",
|
|
118
|
+
"unlink",
|
|
119
|
+
"unlinkDir"
|
|
120
|
+
]);
|
|
121
|
+
const scanDirsWatcher = watch(scanDirs, { ignoreInitial: true }).on("all", (event, path, stat) => {
|
|
122
|
+
if (watchReloadEvents.has(event)) reload();
|
|
123
|
+
});
|
|
124
|
+
const serverEntryRe = /^server\.[mc]?[jt]sx?$/;
|
|
125
|
+
const rootDirWatcher = watch(nitro.options.rootDir, {
|
|
126
|
+
ignoreInitial: true,
|
|
127
|
+
depth: 0
|
|
128
|
+
}).on("all", (event, path) => {
|
|
129
|
+
if (watchReloadEvents.has(event) && serverEntryRe.test(basename(path))) reload();
|
|
130
|
+
});
|
|
131
|
+
nitro.hooks.hook("close", () => {
|
|
132
|
+
rollupWatcher.close();
|
|
133
|
+
scanDirsWatcher.close();
|
|
134
|
+
rootDirWatcher.close();
|
|
135
|
+
});
|
|
136
|
+
nitro.hooks.hook("rollup:reload", () => reload());
|
|
137
|
+
nitro.logger.info(`Starting dev watcher (builder: \`rollup\`, preset: \`${nitro.options.preset}\`, compatibility date: \`${formatCompatibilityDate(nitro.options.compatibilityDate)}\`)`);
|
|
138
|
+
await load();
|
|
139
|
+
function startRollupWatcher(nitro, rollupConfig) {
|
|
140
|
+
const watcher = rollup.watch(defu(rollupConfig, { watch: { chokidar: nitro.options.watchOptions } }));
|
|
141
|
+
let start;
|
|
142
|
+
watcher.on("event", (event) => {
|
|
143
|
+
switch (event.code) {
|
|
144
|
+
case "START":
|
|
145
|
+
start = Date.now();
|
|
146
|
+
nitro.hooks.callHook("dev:start");
|
|
147
|
+
break;
|
|
148
|
+
case "BUNDLE_END":
|
|
149
|
+
nitro.hooks.callHook("compiled", nitro);
|
|
150
|
+
if (nitro.options.logging.buildSuccess) nitro.logger.success(`Server built`, start ? `in ${Date.now() - start}ms` : "");
|
|
151
|
+
nitro.hooks.callHook("dev:reload");
|
|
152
|
+
break;
|
|
153
|
+
case "ERROR":
|
|
154
|
+
nitro.logger.error(formatRollupError(event.error));
|
|
155
|
+
nitro.hooks.callHook("dev:error", event.error);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return watcher;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/build/rollup/prod.ts
|
|
163
|
+
async function buildProduction(nitro, rollupConfig) {
|
|
164
|
+
const rollup = await import("rollup");
|
|
165
|
+
const buildStartTime = Date.now();
|
|
166
|
+
await scanHandlers(nitro);
|
|
167
|
+
await writeTypes(nitro);
|
|
168
|
+
let output;
|
|
169
|
+
if (!nitro.options.static) {
|
|
170
|
+
nitro.logger.info(`Building server (builder: \`rollup\`, preset: \`${nitro.options.preset}\`, compatibility date: \`${formatCompatibilityDate(nitro.options.compatibilityDate)}\`)`);
|
|
171
|
+
output = await (await rollup.rollup(rollupConfig).catch((error) => {
|
|
172
|
+
nitro.logger.error(formatRollupError(error));
|
|
173
|
+
throw error;
|
|
174
|
+
})).write(rollupConfig.output);
|
|
175
|
+
}
|
|
176
|
+
const buildInfo = await writeBuildInfo(nitro, output);
|
|
177
|
+
if (!nitro.options.static) {
|
|
178
|
+
if (nitro.options.logging.buildSuccess) nitro.logger.success(`Server built in ${Date.now() - buildStartTime}ms`);
|
|
179
|
+
if (nitro.options.logLevel > 1) process.stdout.write(await generateFSTree(nitro.options.output.serverDir, { compressedSizes: nitro.options.logging.compressedSizes }) || "");
|
|
180
|
+
}
|
|
181
|
+
await nitro.hooks.callHook("compiled", nitro);
|
|
182
|
+
nitro.logger.success("You can preview this build using `npx nitro preview`");
|
|
183
|
+
if (buildInfo.commands.deploy) nitro.logger.success("You can deploy this build using `npx nitro deploy --prebuilt`");
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region src/build/rollup/build.ts
|
|
187
|
+
async function rollupBuild(nitro) {
|
|
188
|
+
await nitro.hooks.callHook("build:before", nitro);
|
|
189
|
+
const config = await getRollupConfig(nitro);
|
|
190
|
+
await nitro.hooks.callHook("rollup:before", nitro, config);
|
|
191
|
+
return nitro.options.dev ? watchDev(nitro, config) : buildProduction(nitro, config);
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
export { rollupBuild };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { H as v } from "./common.mjs";
|
|
2
|
+
import { nitro } from "nitro/vite";
|
|
3
|
+
//#region src/build/vite/build.ts
|
|
4
|
+
async function viteBuild(nitro$1) {
|
|
5
|
+
if (nitro$1.options.dev) throw new Error("Nitro dev CLI does not supports vite. Please use `vite dev` instead.");
|
|
6
|
+
const { createBuilder } = await import(nitro$1.options.__vitePkg__ || "vite");
|
|
7
|
+
const pluginInstance = nitro({ _nitro: nitro$1 });
|
|
8
|
+
globalThis.__nitro_build__ = true;
|
|
9
|
+
const builder = await createBuilder({
|
|
10
|
+
base: nitro$1.options.rootDir,
|
|
11
|
+
plugins: [pluginInstance],
|
|
12
|
+
logLevel: v ? "warn" : void 0
|
|
13
|
+
});
|
|
14
|
+
delete globalThis.__nitro_build__;
|
|
15
|
+
await builder.buildApp();
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { viteBuild };
|