mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
Initial Commit
This commit is contained in:
@@ -37,6 +37,17 @@ const buildOptions = (override: BuildOptions): BuildOptions => {
|
||||
outdir: 'dist',
|
||||
plugins: [jisonPlugin, jsonSchemaPlugin],
|
||||
sourcemap: 'external',
|
||||
// Add Node.js polyfills for ANTLR4TS
|
||||
define: {
|
||||
'process.env.NODE_ENV': '"production"',
|
||||
global: 'globalThis',
|
||||
},
|
||||
inject: [],
|
||||
// Polyfill Node.js modules for browser
|
||||
alias: {
|
||||
assert: 'assert',
|
||||
util: 'util',
|
||||
},
|
||||
...override,
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user