Update Apr 16, 2025 tracked by Updatify
6.3.0 (2025-04-16)
Features
- env: add false option for envDir to disable env loading (#19503) (bca89e1)
- types: make CustomPluginOptionsVite backward compatible (#19760) (821edf1)
- config: improve bad character warning (#19683) (998303b)
- css: support preprocessor with lightningcss (#19071) (d3450ca)
- experimental: add fetchable environment interface (#19664) (c5b7191)
- implement hook filters (#19602) (04d58b4)
-
types: expose
CustomPluginOptionsVitetype (#19557) (15abc01) - types: make ImportMetaEnv strictly available (#19077) (6cf5141)
- types: type hints for hmr events (#19579) (95424b2)
-
warn if
define['process.env']containspathkey with a value (#19517) (832b2c4)
Bug Fixes
-
hmr: avoid infinite loop happening with
hot.invalidatein circular deps (#19870) (d4ee5e8) - preview: use host url to open browser (#19836) (5003434)
- addWatchFile doesn’t work if base is specified (fixes #19792) (#19794) (8bed1de)
- correct the behavior when multiple transform filter options are specified (#19818) (7200dee)
- css: remove empty chunk imports correctly when chunk file name contained special characters (#19814) (b125172)
- dev: make query selector regexes more inclusive (fix #19213) (#19767) (f530a72)
- fs check with svg and relative paths (#19782) (62d7e81)
- hmr: run HMR handler sequentially (#19793) (380c10e)
- keep entry asset files imported by other files (#19779) (2fa1495)
- module-runner: allow already resolved id as entry (#19768) (e2e11b1)
-
reject requests with
#in request-target (#19830) (175a839) -
types: remove the
keepProcessEnvfrom theDefaultEnvironmentOptionstype (#19796) (36935b5) -
unbundle
fdirto fixcommonjsOptions.dynamicRequireTargets(#19791) (71227be) - align plugin hook filter behavior with pluginutils (#19736) (0bbdd2c)
- fs check in transform middleware (#19761) (5967313)
- hmr: throw non-standard error info causes logical error (#19776) (6b648c7)
-
add back
.mtsto defaultresolve.extensions(#19701) (ae91bd0) - css: parse image-set without space after comma correctly (#19661) (d0d4c66)
- css: scoped css order with non-scoped css (#19678) (a3a94ab)
- deps: update all non-major dependencies (#19649) (f4e712f)
- fs raw query with query separators (#19702) (262b5ec)
- optimizer: fix incorrect picomatch usage in filter() (#19646) (300280d)
- ssr: hoist export to handle cyclic import better (#18983) (8c04c69)
Performance Improvements
-
css: avoid constructing
renderedModules(#19775) (59d0b35) -
only bundle node version
debug(#19715) (e435aae)
Documentation
Miscellaneous Chores
- remove unused eslint directive (#19781) (cb4f5b4)
- fix some typos in comment (#19728) (35ee848)
- deps: unbundle tinyglobby (#19487) (a5ea6f0)
Code Refactoring
- simplify pluginFilter implementation (#19828) (0a0c50a)
-
[hookName].handlerin plugins (#19586) (9827df2) - reporter: only call modulesReporter when logLevel is info (#19708) (7249553)