mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(client,website): bypass issue with plugins
This commit is contained in:
		| @@ -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). | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user