@uni-helper/vite-plugin-uni-components
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@uni-helper/vite-plugin-uni-components

Forked from unplugin-vue-components and modified to adapt UniApp.

NPM version

Install

pnpm i -D @uni-helper/vite-plugin-uni-components

Usage

// vite.config.ts
import { defineConfig } from 'vite'
import Uni from '@dcloudio/vite-plugin-uni'
import Components from '@uni-helper/vite-plugin-uni-components'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // make sure put it before `Uni()`
    Components(),
    Uni(),
  ],
})

Component type prompt

If you use pnpm, please create a .npmrc file in root, see issue.

// .npmrc
public-hoist-pattern[]=@vue*
// or 
// shamefully-hoist = true

see more in unplugin-vue-components

License

MIT License © 2023-PRESENT Neil Lee

Readme

Keywords

none

Package Sidebar

Install

npm i @uni-helper/vite-plugin-uni-components

Weekly Downloads

1,381

Version

0.0.9

License

MIT

Unpacked Size

64.8 kB

Total Files

12

Last publish

Collaborators

  • zguolee
  • modyqyw
  • kejunmao