chore: Fix import.meta.vitest warnings

This commit is contained in:
Sidharth Vinod
2023-12-08 09:38:54 +05:30
parent 60f92dcdbc
commit aa4bfa0727
3 changed files with 7 additions and 1 deletions

View File

@@ -65,6 +65,9 @@ export const getBuildConfig = (options: MermaidBuildOptions): BuildOptions => {
minify,
logLevel: 'info',
chunkNames: `chunks/${outFileName}/[name]-[hash]`,
define: {
'import.meta.vitest': 'undefined',
},
});
if (core) {