mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-16 23:09:28 +02:00
Merge pull request #4071 from mermaid-js/renovate/vite-4.x
chore(deps): update dependency vite to v4
This commit is contained in:
@@ -20,13 +20,14 @@ const visualizerOptions = (packageName: string, core = false): PluginOption[] =>
|
|||||||
if (packageName !== 'mermaid' || !visualize) {
|
if (packageName !== 'mermaid' || !visualize) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return ['network', 'treemap', 'sunburst'].map((chartType) =>
|
return ['network', 'treemap', 'sunburst'].map(
|
||||||
visualizer({
|
(chartType) =>
|
||||||
filename: `./stats/${chartType}${core ? '.core' : ''}.html`,
|
visualizer({
|
||||||
template: chartType as TemplateType,
|
filename: `./stats/${chartType}${core ? '.core' : ''}.html`,
|
||||||
gzipSize: true,
|
template: chartType as TemplateType,
|
||||||
brotliSize: true,
|
gzipSize: true,
|
||||||
})
|
brotliSize: true,
|
||||||
|
}) as PluginOption
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -106,7 +106,7 @@
|
|||||||
"start-server-and-test": "^1.14.0",
|
"start-server-and-test": "^1.14.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"vite": "^3.2.3",
|
"vite": "^4.0.0",
|
||||||
"vitest": "^0.28.4"
|
"vitest": "^0.28.4"
|
||||||
},
|
},
|
||||||
"volta": {
|
"volta": {
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import { defineConfig, searchForWorkspaceRoot } from 'vite';
|
import { defineConfig, type PluginOption, searchForWorkspaceRoot } from 'vite';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
// @ts-ignore: still in alpha
|
|
||||||
import { SearchPlugin } from 'vitepress-plugin-search';
|
import { SearchPlugin } from 'vitepress-plugin-search';
|
||||||
|
|
||||||
const virtualModuleId = 'virtual:mermaid-config';
|
const virtualModuleId = 'virtual:mermaid-config';
|
||||||
@@ -8,7 +7,7 @@ const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
SearchPlugin(),
|
SearchPlugin() as PluginOption,
|
||||||
{
|
{
|
||||||
// TODO: will be fixed in the next vitepress release.
|
// TODO: will be fixed in the next vitepress release.
|
||||||
name: 'fix-virtual',
|
name: 'fix-virtual',
|
||||||
|
40
pnpm-lock.yaml
generated
40
pnpm-lock.yaml
generated
@@ -161,8 +161,8 @@ importers:
|
|||||||
specifier: ^4.8.4
|
specifier: ^4.8.4
|
||||||
version: 4.8.4
|
version: 4.8.4
|
||||||
vite:
|
vite:
|
||||||
specifier: ^3.2.3
|
specifier: ^4.0.0
|
||||||
version: 3.2.3_@types+node@18.11.9
|
version: 4.0.1_@types+node@18.11.9
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^0.28.4
|
specifier: ^0.28.4
|
||||||
version: 0.28.4_vun5xzxu3tkrssf3erdbijyyki
|
version: 0.28.4_vun5xzxu3tkrssf3erdbijyyki
|
||||||
@@ -11869,41 +11869,7 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.15.13
|
esbuild: 0.15.13
|
||||||
postcss: 8.4.18
|
postcss: 8.4.20
|
||||||
resolve: 1.22.1
|
|
||||||
rollup: 2.79.1
|
|
||||||
optionalDependencies:
|
|
||||||
fsevents: 2.3.2
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/vite/3.2.3_@types+node@18.11.9:
|
|
||||||
resolution: {integrity: sha512-h8jl1TZ76eGs3o2dIBSsvXDLb1m/Ec1iej8ZMdz+PsaFUsftZeWe2CZOI3qogEsMNaywc17gu0q6cQDzh/weCQ==}
|
|
||||||
engines: {node: ^14.18.0 || >=16.0.0}
|
|
||||||
hasBin: true
|
|
||||||
peerDependencies:
|
|
||||||
'@types/node': '>= 14'
|
|
||||||
less: '*'
|
|
||||||
sass: '*'
|
|
||||||
stylus: '*'
|
|
||||||
sugarss: '*'
|
|
||||||
terser: ^5.4.0
|
|
||||||
peerDependenciesMeta:
|
|
||||||
'@types/node':
|
|
||||||
optional: true
|
|
||||||
less:
|
|
||||||
optional: true
|
|
||||||
sass:
|
|
||||||
optional: true
|
|
||||||
stylus:
|
|
||||||
optional: true
|
|
||||||
sugarss:
|
|
||||||
optional: true
|
|
||||||
terser:
|
|
||||||
optional: true
|
|
||||||
dependencies:
|
|
||||||
'@types/node': 18.11.9
|
|
||||||
esbuild: 0.15.13
|
|
||||||
postcss: 8.4.18
|
|
||||||
resolve: 1.22.1
|
resolve: 1.22.1
|
||||||
rollup: 2.79.1
|
rollup: 2.79.1
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
|
Reference in New Issue
Block a user