🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@voya-kit/vite-plugins

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voya-kit/vite-plugins

Voya vite plugins

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Voya vite plugins

基于 Vue.jsVite 的开发工具插件,提供自动注入组件名称和配置 setup 属性,提升开发效率与代码规范性。

特性

  • 自动命名: 自动为 Vue 组件添加或更新 name 属性,提高调试便利性。
  • Setup 配置: 支持检测并标记是否使用组合式 API (setup 属性),便于维护和理解代码结构。
  • 语言类型识别: 识别并保留 <script> 标签的 lang 属性,支持 TypeScript 或其他预处理器。
  • 继承属性管理: 处理 inheritAttrs 属性,灵活控制组件属性的继承行为。
  • 无缝集成: 作为 Vite 插件,直接集成至项目构建流程,无需额外配置。

安装

通过 npm 安装本插件:

npm install vite-plugin-vue-name-setup

使用

在你的 Vite 配置文件 (vite.config.jsvite.config.ts) 中引入并配置插件:

import { setupName } from '@voya-kit/plugins';
export default { plugins: [ setupName()]};

Keywords

voya

FAQs

Package last updated on 12 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts