Now both next and vite plugins are exported as functions that take config as the single argument.
Vite plugins are usually instantiated as
import Vue from 'unplugin-vue/vite'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [Vue()],
})
This should be easily achievable with unplugin