mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
build(docs): set build.target = 'modules'
Explicility set the `build.target` to `modules`, as Vite v7 changes this and drops support for older browsers. We probably should do this eventually too, but maybe as part of a Mermaid v12 release.
This commit is contained in:
@@ -13,6 +13,10 @@ const virtualModuleId = 'virtual:mermaid-config';
|
||||
const resolvedVirtualModuleId = '\0' + virtualModuleId;
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
// Vite v7 changes the default target and drops old browser support
|
||||
target: 'modules',
|
||||
},
|
||||
optimizeDeps: {
|
||||
// vitepress is aliased with replacement `join(DIST_CLIENT_PATH, '/index')`
|
||||
// This needs to be excluded from optimization
|
||||
|
Reference in New Issue
Block a user