Get started
Verification report · signed

43 of 104 claims verified at floor 0.95.

Every claim below was scored against the source it cites. Check the signature offline with the key at /.well-known/report-keys, or re-run any claim with the pinned judge.

The report

Digestsha256:53af1afa69c446eb02eb17609988a999030920e209b3e1587a72a72dab1ce712
Signing key idpem-9ec90d53d901e315
Judgegoogle/gemini-4-argon · v0-dev
Judge prompt hashsha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d
AI Source of Truthnot on the registry
Pipelinecore-3
Mean entailment0.429
Signed2026-11-20
Versionv3
Artifact digestsha256:d6463dbaa96cb20ba56d7b094d9058d3ce7423340c97a366ed05d522aaa1d3ec
Source commitsha256:f1dc7df09c0b92916af0ddafc63b95ffa7f74d659d08674f32aa2194da833a95
Verified at2026-11-20T13:41:34.015Z
Cited byno other product cites this version yet

Agents: fetch the same report with artifacts_get view report (its freshness carries the version, digest, source commit and verified time, and its citation says whether it met its floor), compare versions with view versions, and re-check a claim with claims_verify (no token needed; see the MCP reference).

What this report checked

  • Sources were locked and hashed before any claim was scored
  • The text was split into atomic factual claims
  • Each claim was scored against the source it cites by the pinned judge
  • Each claim was bound to verified, in review or cut at the floor
  • Every symbol a code claim names was looked up in the API surface extracted from the locked sources
  • TypeScript and JavaScript snippets were type-checked in a sandbox with a time limit
  • The generated text was scanned for hidden text and injected instructions before the run completed
  • Each source's license (SPDX id), origin URL and upstream commit or retrieval date were recorded
  • The changes between the versions in the locked sources (changelog, API diff, deprecations) were computed without a model and given to the generate stage
  • The generated text was checked for generic overview sections, and any found are named in the report

Checks not run

  • Claims were re-verified after the style pass
  • Python snippets were parsed at the pinned language version in a sandbox with a time limit
  • Code examples whose checks passed were run in a container with no network, a read-only file system, no added privileges and memory, process and time limits
  • Only the sections that mention a changed symbol or cite a changed source were regenerated and re-verified; the others kept their claims and results
  • The kept sections' symbols and code were checked again against the new release's sources, without a model

What this report does not cover

  • Whether the cited sources are themselves true
  • Factual statements the decomposition step did not extract as claims
  • Safety or security of code, commands or instructions in the artifact
  • Licensing or ownership of the artifact content
  • Code examples were type-checked or parsed, never run
  • What a code example does when run, beyond its names existing and its syntax and types checking clean
Judge versionv0-dev
Scannerscontextfile.quarantine rules-fc990336207b

Verify it yourself

This report is also an in-toto attestation in a Sigstore bundle, signed with the report key. Check it with cosign and the published key; you need no ContextFile code. Full steps: /docs/verify.

Key idpem-9ec90d53d901e315
Rekornot logged (only reports on the registry are logged; cosign needs --insecure-ignore-tlog=true)
curl -sSo attestation.sigstore.json 'https://contextfile.ai/reports/sha256%3A53af1afa69c446eb02eb17609988a999030920e209b3e1587a72a72dab1ce712/attestation.sigstore.json'
curl -sS 'https://contextfile.ai/.well-known/report-keys' | jq -r '.keys[] | select(.key_id == "pem-9ec90d53d901e315") | .pem' > report-key.pem
cosign verify-blob-attestation \
  --new-bundle-format --bundle attestation.sigstore.json \
  --key report-key.pem \
  --type https://contextfile.ai/verification-report/v1 \
  --insecure-ignore-tlog=true \
  ./artifact-file

Replace ./artifact-file with the file you bought; cosign checks that its SHA-256 is the statement subject. To read the scope block from the bundle:

jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d | jq .predicate.body.scope

Claims

ClaimSourceScoreStateRe-check
CLM-0001
In Vite 8, the default browser values of `build.target` and `'baseline-widely-available'` moved from Chrome 107 to 111.
none0cut
CLM-0002
In Vite 8, the default browser values of `build.target` and `'baseline-widely-available'` moved from Edge 107 to 111.
none0cut
CLM-0003
In Vite 8, the default browser values of `build.target` and `'baseline-widely-available'` moved from Firefox 104 to 114.
none0cut
CLM-0004
In Vite 8, the default browser values of `build.target` and `'baseline-widely-available'` moved from Safari 16.0 to 16.4.
none0cut
CLM-0005
The Vite 8 default browser values match Baseline Widely Available as of 2026-01-01.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0006
The build docs list the minimum supported browsers as Chrome >=111, Edge >=111, Firefox >=114 and Safari >=16.4.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/build.md0.5cut
CLM-0007
Even with a lower `build.target`, the floor is `es2015` plus Chrome >=64, Firefox >=67, Safari >=11.1 and Edge >=79.
none0cut
CLM-0008
Vite relies on native dynamic import and `import.meta`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/build.md1verified
CLM-0009
Vite 7 changed the default `build.target` from `'modules'` to `'baseline-widely-available'`.
none0cut
CLM-0010
In Vite 7, the default browser values moved from Chrome 87 to 107, Edge 88 to 107, Firefox 78 to 104, and Safari 14.0 to 16.0.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite7.md1verified
CLM-0011
Vite 8 uses Rolldown and Oxc instead of esbuild and Rollup.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0012
A compatibility layer auto-converts existing `esbuild` and `rollupOptions` config to Rolldown and Oxc equivalents.
none0cut
CLM-0013
Vite 8 requires Node.js 20.19+ or 22.12+.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8.md1verified
CLM-0014
Vite 8 has the same Node.js version requirements as Vite 7.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8.md1verified
CLM-0015
lightningcss is now a normal dependency instead of an optional peer dependency in Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8.md1verified
CLM-0016
To undo a `rolldown-vite` alias, change the `vite` devDependency from `"npm:rolldown-vite@7.2.2"` to `"^8.0.0"`.
none0cut
CLM-0017
Only sections marked NRV apply when migrating from `rolldown-vite`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0018
JSX options live under `oxc`, including `oxc.jsx.importSource` and the Vite-only `oxc.jsxInject`.
none0cut
CLM-0019
Passing a URL to `import.meta.hot.accept` is no longer supported in Vite 8; an id must be passed instead.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0020
Assigning to `bundle[foo]` in `generateBundle` or `writeBundle` is unsupported in Vite 8; `this.emitFile()` should be used.
none0cut
CLM-0021
`structuredClone(bundle)` throws `DataCloneError` in Vite 8; `structuredClone({ ...bundle })` should be used.
none0cut
CLM-0022
The `bundle` reference is not shared across hooks in Vite 8.
none0cut
CLM-0023
All parallel Rollup hooks run as sequential hooks in Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0024
`build.rollupOptions.output.format: 'system'` and `'amd'` are not supported by Rolldown and therefore no longer supported by Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0025
The `shouldTransformCachedModule` hook is not supported by Rolldown and therefore no longer supported by Vite 8.
none0cut
CLM-0026
The `resolveImportMeta` hook is not supported by Rolldown and therefore no longer supported by Vite 8.
none0cut
CLM-0027
The `renderDynamicImport` hook is not supported by Rolldown and therefore no longer supported by Vite 8.
none0cut
CLM-0028
The `resolveFileUrl` hook is not supported by Rolldown and therefore no longer supported by Vite 8.
none0cut
CLM-0029
Passing the same browser with multiple versions to `build.target` errors in Vite 8.
none0cut
CLM-0030
Extglobs are not supported yet in Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0031
Transforming to ES5 and below with plugin-legacy is not supported in Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0032
`define` does not share object references in Vite 8; each variable gets a separate copy.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0033
Comments are removed before the `renderChunk` hook instead of after it in Vite 8.
none0cut
CLM-0034
`parseAst` and `parseAstAsync` are deprecated in favor of `parseSync` and `parse`.
none0cut
CLM-0035
`build.rollupOptions` is a deprecated alias of `build.rolldownOptions`.
none0cut
CLM-0036
`esbuildVersion` and `rollupVersion` are only kept for backward compatibility.
none0cut
CLM-0037
`optimizeDeps.disabled` is deprecated, and pre-bundling during build was removed as of Vite 5.1.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/dep-optimization-options.md1verified
CLM-0038
To disable the optimizer fully, set `optimizeDeps.noDiscovery: true` and leave `optimizeDeps.include` empty or undefined.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/dep-optimization-options.md1verified
CLM-0039
`build.rolldownOptions` is merged with Vite's internal Rolldown options.
none0cut
CLM-0040
Vite overrides the default of `preserveEntrySignatures` when it is unset to `false` for regular client builds, `'strict'` for library builds, and `'allow-extension'` for SSR builds.
none0cut
CLM-0041
The top-level `input` option is preferred over `build.rolldownOptions.input` because it is also used in dev.
none0cut
CLM-0042
If `build.rolldownOptions.input` is set, it overrides the top-level `input` for build only.
none0cut
CLM-0043
Dependency pre-bundling is customized through `optimizeDeps.rolldownOptions`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0044
`future` has type `Record<string, 'warn' | undefined>` and its list may be updated, added or removed at any time.
none0cut
CLM-0045
Planned for the next major are `this.environment` in hooks, the `hotUpdate` hook, and SSR using the `ModuleRunner` API.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md0cut
CLM-0046
Being considered for breaking changes are Move to Per-environment APIs and Shared Plugins During Build.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/index.md1verified
CLM-0047
No past changes are listed yet under the planned breaking changes section.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/index.md0.2cut
CLM-0048
Deprecated features keep working with a warning and are removed in the next major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/releases.md1verified
CLM-0049
`this.environment` in hooks was introduced in v6.0 and replaces the `options.ssr` argument of `resolveId`, `load` and `transform`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md0cut
CLM-0050
Deprecation of `options.ssr` is planned for a future major, and usages can be found by setting `future.removePluginHookSsrArgument` to `"warn"`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0051
A quick migration from `options.ssr` in hooks is replacing `options.ssr` with `this.environment.config.consumer === 'server'`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0052
The environment exposes `environment.config`, `environment.moduleGraph` and `environment.transformRequest()`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0053
A more robust approach than checking environment names uses fine-grained environment options.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0054
The `hotUpdate` hook was introduced in v6.0 and is called per environment, whereas `handleHotUpdate` is called once with mixed client and SSR modules.
none0cut
CLM-0055
`handleHotUpdate` is planned for deprecation in a future major, and Vite does not yet recommend moving away from it.
none0cut
CLM-0056
To opt in to warnings for `handleHotUpdate`, set `future.removePluginHookHandleHotUpdate` to `"warn"`.
none0cut
CLM-0057
`HotUpdateOptions` has `type: 'create' | 'update' | 'delete'`, `file`, `timestamp`, `modules: Array<EnvironmentModuleNode>`, `read` and `server`, where `type` is used to tell watch events apart.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0058
In `hotUpdate`, `modules` contains only the current environment's nodes, and the environment is available as `this.environment`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-plugin.md0cut
CLM-0059
When migrating from `handleHotUpdate` to `hotUpdate`, `handleHotUpdate({ modules }) { return modules.filter(condition) }` becomes `hotUpdate({ modules }) { return modules.filter(condition) }`.
none0cut
CLM-0060
When migrating full reload to `hotUpdate`, `server.moduleGraph.invalidateModule(mod, invalidatedModules, timestamp, true)` and `server.ws.send({ type: 'full-reload' })` become `this.environment.moduleGraph.invalidateModule(mod, invalidatedModules, timestamp, true)` and `this.environment.hot.send({ type: 'full-reload' })`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md0cut
CLM-0061
When migrating custom events to `hotUpdate`, `server.ws.send({ type: 'custom', event: 'special-update', data: {} })` becomes `this.environment.hot.send({ type: 'custom', event: 'special-update', data: {} })`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-runtimes.md0cut
CLM-0062
Environment was introduced in v6.0, and deprecation of the server methods is planned for a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/per-environment-apis.md1verified
CLM-0063
To find usages of deprecated server methods, set `removeServerModuleGraph`, `removeServerReloadModule`, `removeServerPluginContainer`, `removeServerHot`, `removeServerTransformRequest`, and `removeServerWarmupRequest` to `'warn'` under `future`.
none0cut
CLM-0064
In the per-environment API migration, `server.moduleGraph` becomes `environment.moduleGraph`, `server.reloadModule(module)` becomes `environment.reloadModule(module)`, `server.pluginContainer` becomes `environment.pluginContainer`, `server.transformRequest(url, ssr)` becomes `environment.transformRequest(url)`, `server.warmupRequest(url, ssr)` becomes `environment.warmupRequest(url)`, and `server.hot` becomes `server.client.environment.hot`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/per-environment-apis.md1verified
CLM-0065
Environments are accessed with `server.environments`, such as `server.environments.client` and `server.environments.ssr.moduleGraph`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md1verified
CLM-0066
`builder.sharedConfigBuild` was introduced in v6.0, can be set to true to test plugins with a shared config, and its default may change in a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/shared-plugins-during-build.md1verified
CLM-0067
When using `builder.sharedConfigBuild`, plugin state must be keyed by the current environment.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/shared-plugins-during-build.md0.9in_review
CLM-0068
Vite exports a `perEnvironmentState` helper that can be used alongside `perEnvironmentStartEndDuringDev: true`, `buildStart()`, `transform(id)`, and `buildEnd()`.
none0cut
CLM-0069
Without `perEnvironmentStartEndDuringDev: true`, `buildStart` and `buildEnd` are only called for the client environment during dev.
none0cut
CLM-0070
Without the `perEnvironmentState` helper, plugins can use `new Map<Environment, { count: number }>()` and key it by `this.environment`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md0cut
CLM-0071
Vite 7 added the `buildApp` hook so plugins can coordinate building environments, and it removed the Sass legacy API and `splitVendorChunkPlugin`.
none0cut
CLM-0072
Vite 6's Environment API is described as in the release candidate phase, and `server.moduleGraph` still returns a mixed client and SSR view.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment.md1verified
CLM-0073
Vite 5.1 introduced the experimental Vite Runtime API, which evolved into the Module Runner API released in Vite 6.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5-1.md1verified
CLM-0074
Vite 5 required Node.js 18+, deprecated the CJS Node API, and added `server.warmup`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5.md1verified
CLM-0075
Vite 8's `devtools` config option enables Vite Devtools.
none0cut
CLM-0076
The `devtools` config option needs `@vitejs/devtools` installed, plus `@vitejs/devtools-vite` for the dev server or `@vitejs/devtools-rolldown` for build analysis.
none0cut
CLM-0077
`devtools: { apply: 'serve' }` can be used to limit Devtools to one command, and plugin `config` hooks cannot change `devtools`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-instances.md0cut
CLM-0078
Full Bundle Mode is experimental in Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8.md1verified
CLM-0079
`waitForRequestsIdle` is an escape hatch that, when used in a load or transform hook with the default HTTP1 server, blocks one of the six HTTP channels until static imports are processed.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0080
`optimizeDeps.holdUntilCrawlEnd` is experimental with a default of `true`, holds the first optimized-deps result until static imports are crawled, and can be disabled if the scanner plus `include` find all dependencies.
none0cut
CLM-0081
Vite may switch to defaulting `optimizeDeps.holdUntilCrawlEnd: false` in a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0082
`build.chunkImportMap` is experimental, makes chunk imports use unique IDs, provides the mapping in `generateBundle` / `writeBundle`, and gets its emitted file name from `build.rolldownOptions.experimental.chunkImportMap.fileName` (defaulting to `importmap.json`).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md0cut
CLM-0083
`build.chunkImportMap` needs `import.meta.resolve` support.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment.md0cut
CLM-0084
`build.license: true` generates `.vite/license.md`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0085
`html.cspNonce` adds a nonce to script, style and stylesheet/modulepreload link tags, and injects `<meta property="csp-nonce" nonce="PLACEHOLDER" />`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0086
`tsconfig` (string) overrides per-file tsconfig discovery, which is discouraged.
none0cut
CLM-0087
Hook filters use `transform: { filter: { id }, handler }`, are supported in Rollup 4.38.0+ and Vite 6.3.0+, and the filter should also be run inside the handler for compatibility with older versions.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-plugin.md1verified
CLM-0088
`exactRegex` and `prefixRegex` come from `@rolldown/pluginutils` and are also re-exported from `rolldown/filter`.
none0cut
CLM-0089
`isRunnableDevEnvironment` guards access to the runner of a `RunnableDevEnvironment`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-frameworks.md0cut
CLM-0090
The `build` and `preview` functions have signatures `async function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>` and `async function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0091
`vite --force` re-bundles dependencies, or you can delete `node_modules/.vite`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0092
The pre-bundle cache is keyed on lockfile content (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock`, `aube-lock.yaml`, `nub.lock`), the patches folder modification time, relevant `vite.config.js` fields, and `NODE_ENV`.
none0cut
CLM-0093
Resolved dependency requests are cached with `max-age=31536000,immutable`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0094
`vite build --watch` enables the Rolldown watcher, which can be tuned via `build.watch`.
none0cut
CLM-0095
`vite build --mode staging` loads `.env.staging`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/env-and-mode.md1verified
CLM-0096
Existing env variables win over `.env` files, for example `VITE_SOME_KEY=123 vite build`.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/env-and-mode.md1verified
CLM-0097
In `.env` files, `$` is escaped as `\$`.
none0cut
CLM-0098
`npm create vite@latest -- --template rsc` creates a standalone RSC app.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/plugins/index.md1verified
CODE-0001
Code example 1 (ts): resolveId(id, importer, options) { const isSSR = options.ssr // [!code --] const isSSR = this.environment.config.consumer === 'server' // [!code ++] }
content#code-10cut
CODE-0002
Code example 2 (js): handleHotUpdate({ modules }) { return modules.filter(condition) } hotUpdate({ modules }) { return modules.filter(condition) }
content#code-20cut
CODE-0003
Code example 3 (js): // full reload server.moduleGraph.invalidateModule(mod, invalidatedModules, timestamp, true) server.ws.send({ type: 'full-reload' }) // becomes this.environment.moduleGraph.invalidateModule(mod, invalidatedModules, timestamp, true) this.environment.hot.send({ type: 'full-reload' })
content#code-30cut
CODE-0004
Code example 4 (js): // custom event: server.ws.send({ type: 'custom', event: 'special-update', data: {} }) becomes this.environment.hot.send({ type: 'custom', event: 'special-update', data: {} })
content#code-40cut
CODE-0005
Code example 5 (ts): const state = perEnvironmentState<{ count: number }>(() => ({ count: 0 })) return { name: 'count-transformed-modules', perEnvironmentStartEndDuringDev: true, buildStart() { state(this).count = 0 }, transform(id) { state(this).count++ }, buildEnd() { console.log(this.environment.name, state(this).count) }, }
content#code-50cut
CODE-0006
Code example 6 (ts): async function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher> async function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>
content#code-60cut