mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-29 21:26:51 +02:00
chore: Add vite support for define
This commit is contained in:
@@ -89,6 +89,10 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions)
|
|||||||
}),
|
}),
|
||||||
...visualizerOptions(packageName, core),
|
...visualizerOptions(packageName, core),
|
||||||
],
|
],
|
||||||
|
define: {
|
||||||
|
// Needs to be string
|
||||||
|
includeLargeDiagrams: 'true',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (watch && config.build) {
|
if (watch && config.build) {
|
||||||
|
2
packages/mermaid/src/types.d.ts
vendored
2
packages/mermaid/src/types.d.ts
vendored
@@ -1 +1 @@
|
|||||||
declare let includeLargeDiagrams: boolean;
|
declare const includeLargeDiagrams: boolean;
|
||||||
|
@@ -33,4 +33,8 @@ export default defineConfig({
|
|||||||
esmExternals: true,
|
esmExternals: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
define: {
|
||||||
|
// Needs to be string
|
||||||
|
includeLargeDiagrams: 'true',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user