chore(client,website): bypass issue with plugins

This commit is contained in:
Elian Doran 2025-07-05 17:58:36 +03:00
parent 087e755390
commit 5d3c1e3fec
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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).

View file

@ -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