mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-03 20:34:20 +01:00 
			
		
		
		
	Merge pull request #4071 from mermaid-js/renovate/vite-4.x
chore(deps): update dependency vite to v4
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
import { defineConfig, searchForWorkspaceRoot } from 'vite';
 | 
			
		||||
import { defineConfig, type PluginOption, searchForWorkspaceRoot } from 'vite';
 | 
			
		||||
import path from 'path';
 | 
			
		||||
// @ts-ignore: still in alpha
 | 
			
		||||
import { SearchPlugin } from 'vitepress-plugin-search';
 | 
			
		||||
 | 
			
		||||
const virtualModuleId = 'virtual:mermaid-config';
 | 
			
		||||
@@ -8,7 +7,7 @@ const resolvedVirtualModuleId = '\0' + virtualModuleId;
 | 
			
		||||
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  plugins: [
 | 
			
		||||
    SearchPlugin(),
 | 
			
		||||
    SearchPlugin() as PluginOption,
 | 
			
		||||
    {
 | 
			
		||||
      // TODO: will be fixed in the next vitepress release.
 | 
			
		||||
      name: 'fix-virtual',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user