Skip to content

Commit 011cb5d

Browse files
committed
add doc for source map
1 parent 11797e7 commit 011cb5d

File tree

3 files changed

+35
-94
lines changed

3 files changed

+35
-94
lines changed

docs/intro/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,16 @@ In this example, `mermaid.js` is referenced in `src` as a separate JavaScript fi
297297
</html>
298298
```
299299

300-
In this example, `mermaid.js` is built from source with [`--supported`](https://esbuild.github.io/api/#supported) and [`--target`](https://esbuild.github.io/api/#target) to tackle compatibility issues:
300+
In this example, `mermaid.js` is built from source with `--target` to tackle compatibility issues:
301301

302302
```bash
303-
pnpm run build:esbuild --mermaid --supported:class-static-blocks=false --target=ES2018
303+
pnpm run build:esbuild --mermaid --target=ES2018
304304
```
305305

306-
To disable source-map, use `--source-map=false`:
306+
To disable [`source-map`](https://esbuild.github.io/api/#sourcemap), use `--source-map=false`:
307307

308308
```bash
309-
pnpm run build:mermaid --source-map=false
309+
pnpm run build:esbuild --mermaid --source-map=false
310310
```
311311

312312
## 5. Adding Mermaid as a dependency

packages/mermaid/src/docs/intro/getting-started.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ In this example, `mermaid.js` is built from source with `--target` to tackle com
296296
pnpm run build:esbuild --mermaid --target=ES2018
297297
```
298298

299+
To disable [`source-map`](https://esbuild.github.io/api/#sourcemap), use `--source-map=false`:
300+
301+
```bash
302+
pnpm run build:esbuild --mermaid --source-map=false
303+
```
304+
299305
## 5. Adding Mermaid as a dependency
300306

301307
Below are the steps for adding Mermaid as a dependency:

pnpm-lock.yaml

Lines changed: 25 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)