Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Oct 15, 2024
1 parent 60f1f27 commit f9a363c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/plugins/compress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import type { PluginOption } from 'vite';
import { type PluginOption } from 'vite';
import compressPlugin from 'vite-plugin-compression';

/**
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import type { PluginOption } from 'vite';
import { type PluginOption } from 'vite';
import { createHtmlPlugin } from 'vite-plugin-html';

/**
Expand Down
4 changes: 2 additions & 2 deletions build/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { PluginOption } from 'vite';
import { type PluginOption } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import vueSetupExtend from 'vite-plugin-vue-setup-extend';
Expand All @@ -18,7 +18,7 @@ import { configVisualizerPlugin } from './visualizer';
import { PackageJson } from 'pkg-types';

export function createVitePlugins(isBuild: boolean, viteEnv: ViteEnv, pkg: PackageJson) {
const vitePlugins: (PluginOption | PluginOption[])[] = [
const vitePlugins: PluginOption[] = [
vue(),
vueJsx(),
vueSetupExtend(),
Expand Down
2 changes: 1 addition & 1 deletion build/plugins/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import type { PluginOption } from 'vite';
import { type PluginOption } from 'vite';
import legacy from '@vitejs/plugin-legacy';
import { legacyTargets } from '../options/build';

Expand Down
2 changes: 1 addition & 1 deletion build/plugins/visualizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { type PluginOption } from 'vite';
import visualizer from 'rollup-plugin-visualizer';
import { PluginOption } from 'vite';

export function isReportMode(): boolean {
return process.env.REPORT === 'true';
Expand Down
2 changes: 1 addition & 1 deletion build/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import type { PluginOption } from 'vite';
import { type PluginOption } from 'vite';
// import path from 'path';
import {
viteThemePlugin,
Expand Down

0 comments on commit f9a363c

Please sign in to comment.