mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-11 00:41:36 +00:00
5b8b76135b
This commit moves the import of viz.js into a `require.ensure` block, that is only executed when a graphviz diagram is actually present in a note. Webpack automatically splits the library into a separate chunk and loads that on demand. To ensure that graphviz code-blocks are not treated as normal code-blocks while the chunk is loading, a corresponding check is added to `finishView`. The library is also removed from the Webpack config file, as it only is used at one place in extra.js, which is handled by Webpack without any extra config. Signed-off-by: David Mehren <git@herrmehren.de> |
||
---|---|---|
.. | ||
lib | ||
cover.js | ||
extra.js | ||
history.js | ||
htmlExport.js | ||
index.js | ||
locale.js | ||
mathjax-config-extra.js | ||
pretty.js | ||
render.js | ||
reveal-markdown.js | ||
slide.js | ||
utils.js |