Skip to content

Commit d38079f

Browse files
committed
Revert "Use jsdelivr for zenuml/core."
This reverts commit 42d8dc5.
1 parent 42d8dc5 commit d38079f

File tree

3 files changed

+39
-174
lines changed

3 files changed

+39
-174
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"@radix-ui/react-radio-group": "^1.1.3",
7171
"@radix-ui/react-select": "^2.0.0",
7272
"@radix-ui/react-tooltip": "^1.0.7",
73-
"@zenuml/core": "3.23.26",
73+
"@zenuml/core": "3.22.1",
7474
"clsx": "^2.0.0",
7575
"code-blast-codemirror": "chinchang/code-blast-codemirror#web-maker",
7676
"codemirror": "^5.65.16",

src/utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { trackEvent } from './analytics';
33
import { computeHtml, computeCss, computeJs } from './computes';
44
import { JsModes } from './codeModes';
55
import { deferred } from './deferred';
6+
import Vue from '!!file-loader!vue/dist/vue.global';
7+
import Vuex from '!!file-loader!vuex/dist/vuex.global';
8+
import zenuml from '!!file-loader!@zenuml/core/dist/zenuml';
69
const esprima = require('esprima');
710

811
// window.Store = Store;
@@ -277,7 +280,9 @@ export function getCompleteHtml(html, css, js, item) {
277280
html +
278281
'\n';
279282

280-
contents += '<script src="https://cdn.jsdelivr.net/npm/@zenuml/[email protected]/dist/zenuml.js"></script>';
283+
contents += '<script src="' + getUrl(Vue) + '"></script>';
284+
contents += '<script src="' + getUrl(Vuex) + '"></script>';
285+
contents += '<script src="' + getUrl(zenuml) + '"></script>';
281286

282287
if (item.jsMode === JsModes.ES6) {
283288
contents +=

0 commit comments

Comments
 (0)