tiny-vue/internals/unplugin-tiny-vue
xiaoy 2a3defe9d0
feat(plugin): auto import plugin (#1397)
feat(plugin): auto import plugin
2024-02-27 10:11:40 +08:00
..
example feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00
src feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00
.npmignore feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00
README.md feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00
package.json feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00
tsconfig.json feat(plugin): auto import plugin (#1397) 2024-02-27 10:11:40 +08:00

README.md

unplugin-tiny-vue

A auto import plugin. Same function as unplugin-vue-components. No import and component registration required.

Installation

npm i @opentiny/unplugin-tiny-vue -D

yarn i @opentiny/unplugin-tiny-vue -D

Usage

vite

// vite.config.js

import autoImportPlugin from '@opentiny/unplugin-tiny-vue'

export default {
  plugins: [autoImportPlugin()]
}