Skip to content

Build your personal knowledge base with Trilium Notes

chore(client,website): bypass issue with plugins

Elian Doran5d3c1e3fecfd
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts
index 91769d49c5..81f9cf9a7d 100644
--- a/apps/client/vite.config.mts
+++ b/apps/client/vite.config.mts
@@ -1,6 +1,6 @@
/// <reference types='vitest' />
import { join, resolve } from 'path';
-import { defineConfig } from 'vite';
+import { defineConfig, type Plugin } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy'
import asset_path from './src/asset_path';
import webpackStatsPlugin from 'rollup-plugin-webpack-stats';
@@ -36,7 +36,7 @@ export default defineConfig(() => ({
]
}),
webpackStatsPlugin()
- ],
+ ] as Plugin[],
resolve: {
alias: [
// Force the use of dist in development mode because upstream ESM is broken (some hybrid between CJS and ESM, will be improved in upcoming versions).
diff --git a/apps/website/vite.config.ts b/apps/website/vite.config.ts
index 4625e0b2c0..135fc634d5 100644
--- a/apps/website/vite.config.ts
+++ b/apps/website/vite.config.ts
@@ -1,7 +1,7 @@
import tailwindcss from '@tailwindcss/vite';
import { paraglideVitePlugin } from '@inlang/paraglide-js';
import { sveltekit } from '@sveltejs/kit/vite';
-import { defineConfig } from 'vite';
+import { defineConfig, type Plugin } from 'vite';
export default () => {
// See https://github.com/nrwl/nx/issues/28978.
@@ -16,7 +16,7 @@ export default () => {
project: './project.inlang',
outdir: './src/lib/paraglide'
})
- ]
+ ] as Plugin[]
});
process.chdir(cwd); // Restore the original working directory