mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Typescript
This commit is contained in:
@@ -11,9 +11,10 @@ const buildOptions = (override = {}) => {
|
|||||||
keepNames: true,
|
keepNames: true,
|
||||||
globalName: 'mermaid',
|
globalName: 'mermaid',
|
||||||
platform: 'browser',
|
platform: 'browser',
|
||||||
resolveExtensions: ['.js', '.json', '.jison'],
|
tsconfig: 'tsconfig.json',
|
||||||
|
resolveExtensions: ['.ts', '.js', '.json', '.jison'],
|
||||||
external: ['require', 'fs', 'path'],
|
external: ['require', 'fs', 'path'],
|
||||||
entryPoints: ['src/mermaid.js'],
|
entryPoints: ['src/mermaid.ts'],
|
||||||
outfile: 'dist/mermaid.min.js',
|
outfile: 'dist/mermaid.min.js',
|
||||||
plugins: [jisonPlugin],
|
plugins: [jisonPlugin],
|
||||||
sourcemap: 'external',
|
sourcemap: 'external',
|
||||||
|
Reference in New Issue
Block a user