-
fix(vite): handle sophisticated vite plugins (#34242)
发布于
2026-01-29 17:23:18 +00:00 Current Behavior
With Vite now providing additional options (environments etc) for
framework authors, vite.config files can be much more simple for the
user.
However, this often assumes that therootproperty will be set and
provided duringVite CLIinvocation.When we run
resolveConfigto determine inputs and outputs, we do not
set thisrootand expect the user to have it in their vite config
file.
For some plugins/frameworks such as Tanstack Start - this causes the
plugin to error.The
isBuildableconditions is also not inclusive enough and can skip
projects that should be marked as buildable.Expected Behavior
Ensure that sophisticated vite plugins are supported with Nx
Related Issue(s)
CLOSES NXC-3637
(cherry picked from commit
3d62c8b5c1)下载附件