summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/extra.js3
-rw-r--r--webpackBaseConfig.js1
2 files changed, 1 insertions, 3 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index 9ce8525a..bf44e6d0 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -306,8 +306,6 @@ function finishView(view) {
}
});
//graphviz
- require.ensure(["viz.js"], function(require) {
- var Viz = require("viz.js");
var graphvizs = view.find(".graphviz.raw").removeClass("raw");
graphvizs.each(function (key, value) {
try {
@@ -324,7 +322,6 @@ function finishView(view) {
}
});
- })
//mermaid
var mermaids = view.find(".mermaid.raw").removeClass("raw");
mermaids.each(function (key, value) {
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index 62101c3a..c0b24f8f 100644
--- a/webpackBaseConfig.js
+++ b/webpackBaseConfig.js
@@ -39,6 +39,7 @@ module.exports = {
"expose?filterXSS!xss",
"js-url",
"bootstrap",
+ "expose?Viz!viz.js",
"expose?ListPagination!list.pagination.js/dist/list.pagination.js",
path.join(__dirname, 'public/vendor/codemirror/codemirror.min.js'),
path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),