@unplugin-vue-ce/switch-shadow
A vue plugin that extends vue's Custom Element capabilities (free switch shadow)
22,451
75
| Install | |
|---|---|
npm install @unplugin-vue-ce/switch-shadow |
|
| Latest Version: | 1.0.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 5, 2024 |
| Links: | GitHub · npm |
Maintainer: baiwusanyu
@unplugin-vue-ce/switch-shadow
The implementation principle of @unplugin-vue-ce/switch-shadow comes from vue/core pr #7971
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
TODO
Install
npm i @unplugin-vue-ce/switch-shadow
or
yarn add @unplugin-vue-ce/switch-shadow
or
pnpm add @unplugin-vue-ce/switch-shadow
Usage
Vite
// vite.config.ts
import { defineConfig } from 'vite'
import { viteVueCEShadow } from '@unplugin-vue-ce/switch-shadow'
import vue from '@vitejs/plugin-vue'
import type { PluginOption } from 'vite'
export default defineConfig({
plugins: [
vue(),
viteVueCEShadow() as PluginOption,
],
})
Rollup
// rollup.config.js
import { rollupVueCEShadow } from '@unplugin-vue-ce/switch-shadow'
export default {
plugins: [
rollupVueCEShadow(),
],
}
Webpack
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@unplugin-vue-ce/switch-shadow').webpackVueCEShadow(),
],
}
Vue CLI
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('@unplugin-vue-ce/switch-shadow').webpackVueCEShadow({}),
],
},
}
ESBuild
// esbuild.config.js
import { build } from 'esbuild'
import { esbuildVueCEShadow } from '@unplugin-vue-ce/switch-shadow'
build({
plugins: [esbuildVueCEShadow()],
})
Related Packages
@unplugin-vue-ce/sub-style
A vue plugin that extends vue's Custom Element capabilities (sub component style...
39,165
75
unplugin-vue-ce
A vue plugin that extends vue's Custom Element capabilities (v-model, child styl...
24,311
75
@unplugin-vue-ce/v-model
A vue plugin that extends vue's Custom Element capabilities (v-model)
22,716
75
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.0 | ^3.3.2 | MIT |
Pre-releases (18)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.0-beta.21 | ^3.3.2 | MIT | |
| 1.0.0-beta.20 | ^3.3.2 | MIT | |
| 1.0.0-beta.19 | ^3.3.2 | MIT | |
| 1.0.0-beta.18 | ^3.3.2 | MIT | |
| 1.0.0-beta.17 | ^3.3.2 | MIT | |
| 1.0.0-beta.16 | ^3.3.2 | MIT | |
| 1.0.0-beta.15 | ^3.3.2 | MIT | |
| 1.0.0-beta.14 | ^3.3.2 | MIT | |
| 1.0.0-beta.13 | ^3.3.2 | MIT | |
| 1.0.0-beta.12 | ^3.3.2 | MIT | |
| 1.0.0-beta.11 | ^3.3.2 | MIT | |
| 1.0.0-beta.10 | ^3.3.2 | MIT | |
| 1.0.0-beta.9 | ^3.3.2 | MIT | |
| 1.0.0-beta.8 | ^3.3.2 | MIT | |
| 1.0.0-beta.6 | ^3.3.2 | MIT | |
| 1.0.0-beta.5 | ^3.3.2 | MIT | |
| 1.0.0-beta.4 | ^3.3.2 | MIT | |
| 1.0.0-beta.3 | ^3.3.2 | MIT |