feat: enable ts for rollup-plugin-visualizer #2897

Merged
konrad merged 1 commits from dpschen/frontend:feature/ts-for-rollup-plugin-visualizer into main 2022-12-30 13:37:32 +00:00
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/// <reference types="vitest" />
import {defineConfig} from 'vite'
import {defineConfig, type PluginOption} from 'vite'
import vue from '@vitejs/plugin-vue'
import legacyFn from '@vitejs/plugin-legacy'
import { URL, fileURLToPath } from 'node:url'
@ -146,7 +146,10 @@ export default defineConfig({
plugins: [
visualizer({
filename: 'stats.html',
}),
gzipSize: true,
// template: 'sunburst',
// brotliSize: true,
}) as PluginOption,
],
},
},