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

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#2897
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-12-30 13:37:31 +00:00 committed by konrad
parent 0d91d2845f
commit 09d13520b0
1 changed files with 5 additions and 2 deletions

View File

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