mirror of
https://github.com/zadam/trilium.git
synced 2025-10-03 03:57:44 +08:00
chore(client,website): bypass issue with plugins
This commit is contained in:
parent
087e755390
commit
5d3c1e3fec
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue