发布

  • fix(vite): handle sophisticated vite plugins (#34242)

    frostbyte_neo 发布于 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 the root property will be set and
    provided during Vite CLI invocation.

    When we run resolveConfig to determine inputs and outputs, we do not
    set this root and 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 isBuildable conditions 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)

    下载附件