Commit b02eaaf0e4b345786a8a64042998c7330f148732
1 parent
8414e9ef
chore: rm -rf about vue3-video-play package
Showing
3 changed files
with
0 additions
and
21 deletions
Too many changes to show.
To preserve performance only 3 of 5 files are displayed.
build/vite/plugin/dropConsoleInVue3VideoPlay.ts
deleted
100644 → 0
| 1 | -import { Plugin } from 'vite'; | |
| 2 | - | |
| 3 | -export function dropConsoleInVue3VideoPlayPlugin(params?: { enabled: boolean }) { | |
| 4 | - const { enabled = true } = params || {}; | |
| 5 | - return { | |
| 6 | - name: 'drop-console-in-vue3-video-play-plugin', | |
| 7 | - transform(src, id) { | |
| 8 | - if (enabled) { | |
| 9 | - if (id.includes('vue3-video-play')) { | |
| 10 | - return { | |
| 11 | - code: src.replaceAll('console.log', ''), | |
| 12 | - }; | |
| 13 | - } | |
| 14 | - } | |
| 15 | - }, | |
| 16 | - } as Plugin; | |
| 17 | -} |
| ... | ... | @@ -16,7 +16,6 @@ import { configThemePlugin } from './theme'; |
| 16 | 16 | import { configImageminPlugin } from './imagemin'; |
| 17 | 17 | import { configSvgIconsPlugin } from './svgSprite'; |
| 18 | 18 | import { configHmrPlugin } from './hmr'; |
| 19 | -import { dropConsoleInVue3VideoPlayPlugin } from './dropConsoleInVue3VideoPlay'; | |
| 20 | 19 | |
| 21 | 20 | export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { |
| 22 | 21 | const { |
| ... | ... | @@ -64,8 +63,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) { |
| 64 | 63 | //vite-plugin-theme |
| 65 | 64 | vitePlugins.push(configThemePlugin(isBuild)); |
| 66 | 65 | |
| 67 | - vitePlugins.push(dropConsoleInVue3VideoPlayPlugin()); | |
| 68 | - | |
| 69 | 66 | // The following plugins only work in the production environment |
| 70 | 67 | if (isBuild) { |
| 71 | 68 | //vite-plugin-imagemin | ... | ... |