Socket
Socket
Sign inDemoInstall

@unplugin-vue-ce/v-model

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unplugin-vue-ce/v-model

A vue plugin that extends vue's Custom Element capabilities (v-model)


Version published
Weekly downloads
937
decreased by-25.81%
Maintainers
1
Weekly downloads
 
Created
Source

@unplugin-vue-ce/v-model

The implementation principle of @unplugin-vue-ce/v-model comes from vue/core pr #7525

Tips: ⚠ This plugin will inject the implementation code into the vue runtime, which is what I have to tell you. If you have any problems using it, please submit an issue

Snapshot

vm.gif

Install

npm i @unplugin-vue-ce/v-model

or

yarn add @unplugin-vue-ce/v-model

or

pnpm add @unplugin-vue-ce/v-model

Usage

Vite
// vite.config.ts
import { defineConfig } from 'vite'
import { viteVueCEVModel } from '@unplugin-vue-ce/v-model'
import vue from '@vitejs/plugin-vue'
import type { PluginOption } from 'vite'
export default defineConfig({
  plugins: [
    vue(),
    viteVueCEVModel() as PluginOption,
  ],
})

Rollup
// rollup.config.js
import { rollupVueCEVModel } from '@unplugin-vue-ce/v-model'
export default {
  plugins: [
    rollupVueCEVModel(),
  ],
}

Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('@unplugin-vue-ce/v-model').webpackVueCEVModel(),
  ],
}

Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('@unplugin-vue-ce/v-model').webpackVueCEVModel({}),
    ],
  },
}

ESBuild
// esbuild.config.js
import { build } from 'esbuild'
import { esbuildVueCEVModel } from '@unplugin-vue-ce/v-model'

build({
  plugins: [esbuildVueCEVModel()],
})

Keywords

FAQs

Package last updated on 27 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc