You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When using the defineConfig function, the fmt configuration item does not take effect #825
gwq@yizhiqianduanwangdeMacBook-Pro vp-test % vp fmt --check
VITE+ - The Unified Toolchain for the Web
Failed to load configuration file.
Expected a `fmt` field in the default export of /Users/gwq/Desktop/vp-test/vite.config.ts
❯ vp fmt
VITE+ - The Unified Toolchain for the Web
Failed to load configuration file.
Expected a `fmt` field in the default export of vite.config.ts
❯ vp lint
VITE+ - The Unified Toolchain for the Web
Failed to parse oxlint configuration file.
× Expected a `lint` field in the default export of vite.config.ts
Activity
xMikuzoo commentedon Mar 13, 2026
Same issue. In my case I need the function form to access
modefor conditionally loading plugins:Switching to a static object works around it, but I'm not sure how to access
modewithout the function form.vp v0.1.11, Windows,npm@11.11.1CSY54 commentedon Mar 15, 2026
It looks like
vp lintalso has the same issue asvp fmtwhen the configuration is written in function form.leaysgur commentedon Mar 16, 2026
Thank you for the report~!
Please use this link for tracking purposes going forward.
#930