Vite 6.4
Last reviewed Oct 11, 2026
Prompt Details
Prompt Composition
4prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 24101 lines · 5.3K tokens
- TypeScript 746 lines · 1.5K tokens
- Vite 6.476 lines · 3.6K tokens
Total325 lines · 13.5K tokens
CWE Coverage
- 15
- 20
- 22
- 59
- 73
- 78
- 79
- 88
- 89
- 95
- 113
- 117
- 200
- 201
- 208
- 209
- 214
- 250
- 295
- 297
- 306
- 319
- 323
- 330
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 524
- 532
- 538
- 552
- 602
- 653
- 732
- 770
- 772
- 807
- 829
- 838
- 862
- 863
- 908
- 915
- 916
- 918
- 922
- 942
- 943
- 1004
- 1321
- 1333
Prompt Preview
Apply the Node.js 24 and TypeScript 7 prompts first. These rules target Vite 6.4, including its Rollup builds, esbuild transforms, development server, preview server, and SSR integration.
Version, runtime, and configuration authority
- Read the advisories published by both Vite and launch-editor and act on affected Vite ranges even when
npm auditis clean; repository advisories can precede scanner databases, and Vite bundles the editor dependency. Vite fixes an older major only on its latest minor. This line receives security patches only and leaves support when the next major is released, so plan its migration. - Treat Vite's engine range
^18.0.0 || ^20.0.0 || >=22.0.0as compatibility information; it does not restore support to end-of-life Node.js 18 or 20. Use the included runtime baseline for deployment. - Treat
vite.config.*, config imports, the config loader, projectroot,base,envDir, aliases, entries,publicDir, cache paths, and build destinations as privileged inputs. - Do not let HTTP data, tenant settings, forked-pull-request variables, or other untrusted values choose a config file, mode, plugin, proxy target, module identifier, or output path.
- Review resolved configuration for each command and mode.
--modeselects env files independently ofNODE_ENV; neitherimport.meta.env.MODEnorPRODis an authorization control. - Run the TypeScript baseline's separate type-check gate alongside
vite build: Vite's default esbuild transforms do not type-check. EnableisolatedModules, and verify TypeScript 7 compatibility of the chosen