Config

You can pass Vite configurations and plugins into the vite entry of nuxt.config

// nuxt.config
export default {
  buildModules: [
    'nuxt-vite'
  ],
  vite: {
    /* options for vite */
    // ssr: true // enable unstable server-side rendering for development (false by default)
    // experimentWarning: false // hide experimental warning message (disabled by default for tests)
    vue: {
      /* options for vite-plugin-vue2 */
    },
  }
}

More details refer to Vite and vite-plugin-vue2 documentation.