File tree Expand file tree Collapse file tree 6 files changed +540
-12
lines changed
Expand file tree Collapse file tree 6 files changed +540
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ node_modules
1111dist
1212dist-ssr
1313* .local
14+ stats.html
1415
1516# Editor directories and files
1617.vscode
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ import '@vue/runtime-core'
55
66declare module '@vue/runtime-core' {
77 export interface GlobalComponents {
8- VanButton : typeof import ( 'vant/es' ) [ 'Button' ]
98 VanCell : typeof import ( 'vant/es' ) [ 'Cell' ]
109 VanCellGroup : typeof import ( 'vant/es' ) [ 'CellGroup' ]
1110 VanConfigProvider : typeof import ( 'vant/es' ) [ 'ConfigProvider' ]
12- VanIcon : typeof import ( 'vant/es' ) [ 'Icon' ]
1311 VanNavBar : typeof import ( 'vant/es' ) [ 'NavBar' ]
1412 VanSwitch : typeof import ( 'vant/es' ) [ 'Switch' ]
1513 VanTag : typeof import ( 'vant/es' ) [ 'Tag' ]
Original file line number Diff line number Diff line change 2929 "@typescript-eslint/eslint-plugin" : " ^5.27.1" ,
3030 "@typescript-eslint/parser" : " ^5.27.1" ,
3131 "@vitejs/plugin-vue" : " ^2.3.3" ,
32+ "@vitejs/plugin-vue-jsx" : " ^1.3.10" ,
3233 "@vue/eslint-config-typescript" : " ^10.0.0" ,
3334 "autoprefixer" : " ^10.4.7" ,
3435 "consola" : " ^2.15.3" ,
4243 "mockjs" : " ^1.1.0" ,
4344 "plop" : " ^3.1.0" ,
4445 "postcss-px-to-viewport-8-plugin" : " ^1.1.3" ,
45- "typescript" : " 4.7.3" ,
46+ "rollup-plugin-visualizer" : " ^5.6.0" ,
47+ "typescript" : " ^4.7.3" ,
4648 "umi-mock-middleware2" : " ^1.0.2" ,
4749 "unplugin-vue-components" : " ^0.19.6" ,
4850 "vite" : " ^2.9.9" ,
Original file line number Diff line number Diff line change 33 <van-cell-group inset >
44 <van-cell center title =" 暗黑模式" >
55 <template #right-icon >
6- <van-switch v-model =" checked" size =" 20px " />
6+ <van-switch v-model =" checked" size =" 18px " />
77 </template >
88 </van-cell >
99
Original file line number Diff line number Diff line change 1- import type { ConfigEnv , UserConfig } from 'vite'
21import { loadEnv } from 'vite'
3- import path from 'path'
42import vue from '@vitejs/plugin-vue'
3+ import vueJsx from '@vitejs/plugin-vue-jsx'
4+ import type { ConfigEnv , UserConfig } from 'vite'
5+ import { visualizer } from 'rollup-plugin-visualizer'
56import Components from 'unplugin-vue-components/vite'
67import { VantResolver } from 'unplugin-vue-components/resolvers'
78import createMockServer from './build/mockServer'
9+ import path from 'path'
810
911// https://vitejs.dev/config/
1012export default ( { mode } : ConfigEnv ) : UserConfig => {
@@ -22,6 +24,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
2224 // https://github.com/vuejs/rfcs/discussions/369.
2325 // reactivityTransform: true
2426 } ) ,
27+ vueJsx ( ) ,
28+ visualizer ( ) ,
2529 Components ( {
2630 dts : true ,
2731 resolvers : [ VantResolver ( ) ] ,
You can’t perform that action at this time.
0 commit comments