Get started
Verification report · signed

106 of 114 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:9ba88ae33cb529b3c0501886247e56313b56d883d8ff883b5fad96b8a1664491
Signing key idpem-9ec90d53d901e315
Judgegoogle/gemini-4-argon · v0-dev
Judge prompt hashsha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d
AI Source of Truthnot on the registry
Pipelinecore-5
Mean entailment0.930
Signed2026-11-22
Versionv6
Artifact digestsha256:2fbf02fb8947fe55f113d09c217fe347815a2c6bc31c8743230a350a3744ac64
Source commitsha256:f1dc7df09c0b92916af0ddafc63b95ffa7f74d659d08674f32aa2194da833a95
Verified at2026-11-22T18:02:48.805Z
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
  • 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
  • Every symbol a code claim names was looked up in the API surface extracted from the locked sources
  • 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-f0c8bf48a7db

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%3A9ba88ae33cb529b3c0501886247e56313b56d883d8ff883b5fad96b8a1664491/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.1, .wasm files can be imported and their exports used directly, e.g. import { add } from './add.wasm'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0002
For SSR builds, direct .wasm imports, source phase imports, and .wasm?init rely on node:fs, so they only work in Node.js compatible runtimes.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0003
Vite 8.1 adds the caseSensitive option for import.meta.glob.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0004
In Vite 8.1, html.additionalAssetSources adds HTML elements and attributes to the asset-discovery list.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0005
The type of html.additionalAssetSources is Record<string, HtmlAssetSource>.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0006
The HtmlAssetSource interface has srcAttributes?: string[], srcsetAttributes?: string[], and filter?: (data: { key: string, value: string, attributes: Record<string, string> }) => boolean.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0007
With Lightning CSS, Vite 8.1 allows external CSS files imported in CSS files and plugin-registered file dependencies.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0008
The Vite team is thinking of making Lightning CSS the default CSS processor in the next major version.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0009
Lightning CSS can be tried with css.transformer: 'lightningcss'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8-1.md1verified
CLM-0010
In import.meta.glob, matched files are lazy dynamic imports by default and become separate chunks at build.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0011
Arguments to import.meta.glob must be passed as literals, not variables or expressions.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0012
Setting eager: true in import.meta.glob imports all matched modules directly instead of lazily, e.g. const modules = import.meta.glob('./dir/*.js', { eager: true }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0013
In import.meta.glob, the import option imports only a named export, and import: 'default' imports the default export.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0014
In import.meta.glob, combining the import option with eager enables tree-shaking for those modules, e.g. import.meta.glob('./dir/*.js', { import: 'setup', eager: true }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0015
In import.meta.glob, the query option appends a query to each import.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0016
In import.meta.glob, query accepts a string such as '?raw' or '?url', or an object for other plugins to consume, such as import.meta.glob('./dir/*.svg', { query: '?raw', import: 'default' }) or import.meta.glob('./dir/*.js', { query: { foo: 'bar', bar: true } }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0017
In import.meta.glob, the base option sets a base path for the imports.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0018
In import.meta.glob, the base option can only be a directory path relative to the importer file, or absolute against the project root, and aliases and virtual modules are not supported.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0019
In import.meta.glob with base, only globs that are relative paths are interpreted as relative to the resolved base.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0020
In import.meta.glob with base, resulting module keys are made relative to the base.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0021
In import.meta.glob, caseSensitive: false matches regardless of case, and matching is case-sensitive by default.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0022
The first argument of import.meta.glob can be an array of globs, and negative patterns are prefixed with !, e.g. ['./dir/*.js', '!**/bar.js'].
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0023
In import.meta.glob, patterns must be relative (./), absolute from project root (/), or an alias path, and matching uses tinyglobby.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0024
The Vite 5.1 announcement lists 'Deprecated as option in import.meta.glob' under Deprecations, and the excerpt provided does not include the replacement text.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5-1.md0cut
CLM-0025
The Vite 3 rewrite of import.meta.glob introduced the array, negative-pattern, import, query, and eager forms.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite3.md1verified
CLM-0026
The v7 to v8 migration guide lists build.rollupOptions (replaced by build.rolldownOptions) as deprecated and to be removed in the future.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0027
The v7 to v8 migration guide lists worker.rollupOptions (replaced by worker.rolldownOptions) as deprecated and to be removed in the future.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0028
The v7 to v8 migration guide lists build.commonjsOptions as deprecated, to be removed in the future, and now a no-op.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0029
The v7 to v8 migration guide lists build.dynamicImportVarsOptions.warnOnError as deprecated, to be removed in the future, and now a no-op.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0030
The v7 to v8 migration guide lists resolve.alias[].customResolver as deprecated and to be removed in the future, recommending a custom plugin with a resolveId hook and enforce: 'pre'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0031
The esbuild config option is deprecated and converted to oxc internally, so oxc should be used.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0032
optimizeDeps.esbuildOptions is deprecated and converted to optimizeDeps.rolldownOptions internally, so optimizeDeps.rolldownOptions should be used.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/dep-optimization-options.md1verified
CLM-0033
build.rollupOptions is deprecated and is an alias of build.rolldownOptions.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/build-options.md1verified
CLM-0034
parseAst and parseAstAsync are deprecated in favor of parseSync and parse.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0035
In Vite 8, build() throws a BundleError instead of the raw plugin error.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0036
BundleError is typed Error & { errors?: RolldownError[] }, and the individual errors are in .errors.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0037
The moduleType: 'js' change in load and transform hooks affects plugin authors only.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0038
Rolldown sets a module type from the resolved id's extension, and if a load or transform hook converts other content to JavaScript, moduleType: 'js' should be added to the returned object.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0039
In Vite 8, passing a URL to import.meta.hot.accept is no longer supported; an id must be passed instead (#21382).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0040
In Vite 8, extglobs are not supported yet.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0041
In Vite 8, define does not share object references, so each variable gets its own copy.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0042
In Vite 8, assigning to bundle[foo] is not supported (use this.emitFile() instead), and the bundle reference is not shared across hooks.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0043
In Vite 8, structuredClone(bundle) errors with DataCloneError, and structuredClone({ ...bundle }) should be used instead.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0044
In Vite 8, all parallel Rollup hooks work as sequential hooks.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0045
In Vite 8, transforming to ES5 and below with plugin-legacy is not supported.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0046
In Vite 8, passing the same browser with multiple versions to build.target errors.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0047
Because they are not supported by Rolldown, build.rollupOptions.output.format: 'system' and 'amd' are no longer supported by Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0048
Because they are not supported by Rolldown, the shouldTransformCachedModule, resolveImportMeta, renderDynamicImport, and resolveFileUrl hooks are no longer supported by Vite 8.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0049
In Vite 8, comments are removed before the renderChunk hook rather than after it.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/migration.md1verified
CLM-0050
Vite 8 requires Node.js 20.19+ or 22.12+.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite8.md1verified
CLM-0051
this.environment was introduced in v6.0, and deprecation of the options.ssr hook argument is planned for a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0052
To find usage of options.ssr, set future.removePluginHookSsrArgument to 'warn'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0053
For quick migration in resolveId, load, and transform, replace options.ssr with this.environment.config.consumer === 'server'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0054
The environment gives access to environment.config, environment.moduleGraph, and environment.transformRequest().
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/this-environment-in-hooks.md1verified
CLM-0055
hotUpdate was first introduced in v6.0, deprecation of handleHotUpdate is planned for a future major, and the docs don't recommend moving away from it yet.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0056
To test migrating from handleHotUpdate, set future.removePluginHookHandleHotUpdate to 'warn'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0057
hotUpdate is called per environment and also fires for create and delete watch events, using type to tell them apart.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0058
The HotUpdateOptions interface has type: 'create' | 'update' | 'delete', file: string, timestamp: number, modules: Array<EnvironmentModuleNode>, read: () => string | Promise<string>, and server: ViteDevServer.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0059
When migrating to hotUpdate, filtering modules uses the same code in hotUpdate({ modules }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0060
When migrating full reload to hotUpdate, replace server.moduleGraph.invalidateModule(...) with this.environment.moduleGraph.invalidateModule(...) and replace server.ws.send({ type: 'full-reload' }) with this.environment.hot.send({ type: 'full-reload' }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0061
When migrating custom events to hotUpdate, server.ws.send({ type: 'custom', event, data }) becomes this.environment.hot.send({ type: 'custom', event, data }).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/hotupdate-hook.md1verified
CLM-0062
Vite 6.0 introduced the Environment instance, deprecation of server-level methods is planned for a future major, and the docs don't recommend moving yet.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/per-environment-apis.md1verified
CLM-0063
To find usage of server-level methods, set removeServerModuleGraph, removeServerReloadModule, removeServerPluginContainer, removeServerHot, removeServerTransformRequest, and removeServerWarmupRequest in future to 'warn'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/per-environment-apis.md1verified
CLM-0064
The per-environment API mapping is: server.moduleGraph to environment.moduleGraph, server.reloadModule(module) to environment.reloadModule(module), server.pluginContainer to environment.pluginContainer, server.transformRequest(url, ssr) to environment.transformRequest(url), server.warmupRequest(url, ssr) to environment.warmupRequest(url), and server.hot to server.client.environment.hot.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/per-environment-apis.md1verified
CLM-0065
future is typed Record<string, 'warn' | undefined>.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0066
In the breaking-changes index, this.environment, hotUpdate, and the ModuleRunner SSR change are listed under Planned, while per-environment APIs and shared plugins are listed under Considering.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/index.md1verified
CLM-0067
builder.sharedConfigBuild was first introduced in v6.0, setting it to true lets you test plugins with a shared config, and the default may change in a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/shared-plugins-during-build.md1verified
CLM-0068
Shared plugin state must be keyed by environment, for example using perEnvironmentState and perEnvironmentStartEndDuringDev: true.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/changes/shared-plugins-during-build.md1verified
CLM-0069
Without perEnvironmentStartEndDuringDev: true, buildStart and buildEnd are only called for the client environment.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-plugins.md1verified
CLM-0070
During dev, this.environment.addSafeModule(id) lets a resolved module ID load outside server.fs.allow.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-plugins.md1verified
CLM-0071
this.environment.addSafeModule(id) takes a normalized absolute path, optionally with a query, normalized with Vite's normalizePath.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-plugins.md1verified
CLM-0072
this.environment.addSafeModule(id) registers the full ID and the path with query and hash removed, while other query variants must be registered separately.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-plugins.md1verified
CLM-0073
this.environment.addSafeModule(id) should be called in the same transform hook that adds a reference Vite can't discover through import analysis.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-environment-plugins.md1verified
CLM-0074
waitForRequestsIdle is an escape hatch for features that can't follow the dev server's on-demand model, and when used in a load or transform hook on the default HTTP1 server, it blocks one of the six HTTP channels until all static imports are processed.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0075
Vite may default optimizeDeps.holdUntilCrawlEnd: false in a future major.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0076
Vite 5.1 introduced optimizeDeps.holdUntilCrawlEnd: false as an opt-in strategy for big projects.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5-1.md1verified
CLM-0077
The signature of build is async function build(inlineConfig?: InlineConfig): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>, and the signature of preview is async function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-javascript.md1verified
CLM-0078
this.emitFile({ type: 'asset', ... }) returns a referenceId.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-plugin.md1verified
CLM-0079
In JavaScript expressions, plugin asset references use import.meta.ROLLDOWN_FILE_URL_<referenceId>, appending any query or hash by string concatenation.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-plugin.md1verified
CLM-0080
In CSS or HTML, plugin asset references use __VITE_ASSET__<referenceId>__ and append any query or hash right after it.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/api-plugin.md1verified
CLM-0081
The experimental Vite Runtime API from 5.1 evolved into the Module Runner API, released in Vite 6 as part of the Environment API.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5-1.md1verified
CLM-0082
build.license is typed boolean | { fileName?: string } with default false; true writes .vite/license.md, and a fileName ending in .json writes raw JSON metadata instead.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/build-options.md1verified
CLM-0083
In build.lib, cssFileName names the CSS output, and fileName can be (format, entryName) => string.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/build-options.md1verified
CLM-0084
In build.rolldownOptions, when preserveEntrySignatures is unset, Vite uses false for client builds, 'strict' for library builds, and 'allow-extension' for SSR builds, and a set build.rolldownOptions.input overrides the top-level input for build only.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/build-options.md1verified
CLM-0085
input is a top-level entry option used as the default for build.rolldownOptions.input, build.lib.entry, build.ssr (if true), and optimizeDeps.entries.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0086
css.preprocessorMaxWorkers is typed number | true with default true, and 0 runs preprocessors on the main thread.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0087
In Vite 5.1, css.preprocessorMaxWorkers was introduced as opt-in via css.preprocessorMaxWorkers: true.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite5-1.md1verified
CLM-0088
Setting tsconfig is discouraged because it overrides Vite's per-file tsconfig discovery.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0089
resolve.tsconfigPaths does not apply inside .less files, so a relative path or resolve.alias should be used there.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0090
devtools needs @vitejs/devtools installed, cannot be changed by plugin config hooks, and apply: 'serve' limits it to the dev command.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/shared-options.md1verified
CLM-0091
When optimizeDeps.noDiscovery is true, only optimizeDeps.include entries are optimized, and CJS-only dependencies must be listed there during dev.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/dep-optimization-options.md1verified
CLM-0092
optimizeDeps.include accepts trailing globs such as 'my-lib/components/**/*.vue' (experimental).
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/dep-optimization-options.md1verified
CLM-0093
server.sourcemapIgnoreList receives an absolute sourcePath, unlike Rolldown's version which receives a relative one.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/server-options.md1verified
CLM-0094
The defineConfig callback receives ({ command, mode, isSsrBuild, isPreview }), and isSsrBuild and isPreview may be undefined in some tools, so they should be compared explicitly with true or false.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/index.md1verified
CLM-0095
vite, vite dev, and vite serve are aliases, and command is serve for all of them.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/config/index.md1verified
CLM-0096
vite build --watch enables the Rolldown watcher, build.watch passes WatcherOptions directly, and config changes need a restart.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/build.md1verified
CLM-0097
--force re-runs dep pre-bundling, or you can delete node_modules/.vite.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0098
For linked monorepo deps that aren't ESM, add them to optimizeDeps.include and restart with --force after editing a linked dep.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0099
Pre-bundle cache invalidation tracks the lockfile (including bun.lock, aube-lock.yaml, and nub.lock), patches folder modification time, relevant vite.config.js fields, and NODE_ENV.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/dep-pre-bundling.md1verified
CLM-0100
In Vite 4, the default export of a .css file was deprecated in favor of the ?inline suffix.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite4.md1verified
CLM-0101
In Vite 4, dotenv 16 and dotenv-expand 9 mean values containing # or ` must be quoted.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite4.md1verified
CLM-0102
In Vite 4, the modern build target became safari14.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite4.md1verified
CLM-0103
In Vite 5, default and named imports from CSS files were removed in favor of ?inline.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/guide/features.md1verified
CLM-0104
In Vite 3, ESM became the default format for SSR builds, relative base (base: '') is properly supported, and WebAssembly import changed to import init from './example.wasm?init'.
https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/docs/blog/announcing-vite3.md1verified
CODE-0001
Code example 1 (ts): interface HtmlAssetSource { srcAttributes?: string[] srcsetAttributes?: string[] filter?: (data: { key: string value: string attributes: Record<string, string> }) => boolean }
content#code-11verified
CODE-0002
Code example 2 (js): const modules = import.meta.glob('./dir/*.js', { eager: true })
content#code-20cut
CODE-0003
Code example 3 (ts): import.meta.glob('./dir/*.js', { import: 'setup', eager: true })
content#code-30cut
CODE-0004
Code example 4 (ts): import.meta.glob('./dir/*.svg', { query: '?raw', import: 'default' }) import.meta.glob('./dir/*.js', { query: { foo: 'bar', bar: true } })
content#code-40cut
CODE-0005
Code example 5 (js): try { await build() } catch (e) { if (e.errors) { for (const error of e.errors) { console.log(error.code) } } }
content#code-51verified
CODE-0006
Code example 6 (js): return { code: `export default ${JSON.stringify(content)}`, moduleType: 'js', }
content#code-60cut
CODE-0007
Code example 7 (ts): interface HotUpdateOptions { type: 'create' | 'update' | 'delete' file: string timestamp: number modules: Array<EnvironmentModuleNode> read: () => string | Promise<string> server: ViteDevServer }
content#code-71verified
CODE-0008
Code example 8 (ts): future: { removeServerModuleGraph: 'warn', removeServerReloadModule: 'warn', removeServerPluginContainer: 'warn', removeServerHot: 'warn', removeServerTransformRequest: 'warn', removeServerWarmupRequest: 'warn', }
content#code-80cut
CODE-0009
Code example 9 (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-90cut
CODE-0010
Code example 10 (ts): async function build( inlineConfig?: InlineConfig, ): Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher> async function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>
content#code-100cut