Skip to content

[Function] Request support for Vite+ (vite plus) #5147

@bd-dxg

Description

@bd-dxg

Is your feature request related to a problem? Please describe.

Request for support https://viteplus.dev/

Describe the solution you'd like

When vite+ is currently used in a vitepress project, vite+ creates vite.config.ts in the root directory of the project, how does this affect the project?

Contents of automatically generated vite.config.ts:

import { defineConfig } from 'vite-plus';

export default defineConfig({
  lint: {"options":{"typeAware":true,"typeCheck":true}},
  fmt: {
    "printWidth": 120,
    "tabWidth": 2,
    "useTabs": false,
    "semi": false,
    "singleQuote": true,
    "quoteProps": "as-needed",
    "bracketSpacing": true,
    "arrowParens": "avoid",
    "htmlWhitespaceSensitivity": "ignore",
    "bracketSameLine": true,
    "sortPackageJson": false,
    "embeddedLanguageFormatting": "auto",
    "ignorePatterns": [
      ".vitepress/cache",
      ".vitepress/dist",
      "node_modules",
      "package-lock.json",
      "pnpm-lock.yaml",
      "bun.lockb",
      ".env"
    ]
  },
});

My own previously configured vite info.vitepress\configs\vite.mts:

import { groupIconVitePlugin } from 'vitepress-plugin-group-icons'

/** @type {import('vite').UserConfig} */
export default {
  plugins: [groupIconVitePlugin()],
  server: {
    host: '0.0.0.0',
  },
  build: {
    rollupOptions: {
      external: ['gitalk', 'rough-notation'],
      output: {
        globals: {
          gitalk: 'Gitalk',
          'rough-notation': 'RoughNotation',
        },
      },
    },
  },
}

Describe alternatives you've considered

null

Additional context

vp env current

Environment:
  Version      25.8.0
  Source       default
  Source Path  C:\Users\bddxg\.vite-plus\config.json

Tool Paths:
  node  C:\Users\bddxg\.vite-plus\js_runtime\node\25.8.0\node.exe
  npm   C:\Users\bddxg\.vite-plus\js_runtime\node\25.8.0\npm.cmd
  npx   C:\Users\bddxg\.vite-plus\js_runtime\node\25.8.0\npx.cmd

vp --version

VITE+ - The Unified Toolchain for the Web

vp v0.1.11

Local vite-plus:
  vite-plus  v0.1.12

Tools:
  vite             v8.0.0
  rolldown         v1.0.0-rc.9
  vitest           v4.1.0
  oxfmt            v0.40.0
  oxlint           v1.55.0
  oxlint-tsgolint  v0.17.0
  tsdown           v0.21.3

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions