Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Export vite plugin in a usual way for vite plugin #2

@AleksandrSl

Description

@AleksandrSl

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

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