Skip to content

Commit 10c2d9e

Browse files
committed
Add jsonld.js as a dependency; bundle with editor.
1 parent 3cc4857 commit 10c2d9e

File tree

4 files changed

+106
-1
lines changed

4 files changed

+106
-1
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@rollup/plugin-node-resolve": "^16.0.3",
2828
"cbor2": "^2.0.1",
2929
"codemirror": "^6.0.2",
30+
"jsonld": "^9.0.0",
3031
"petite-vue": "^0.4.1",
3132
"rollup": "^4.53.2",
3233
"wrangler": "^4.49.0",

playground/next/editor.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import YAML from 'yaml';
1313
import {yaml} from '@codemirror/lang-yaml';
1414
import * as cborld from '@digitalbazaar/cborld';
1515
import * as cbor2 from 'cbor2';
16+
import jsonld from 'jsonld';
1617

1718
// Setup JSON-LD documentLoader
1819
const xhrDocumentLoader = jsonld.documentLoaders.xhr();

playground/next/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,5 +333,4 @@ <h2 class="ui massive header">JSON-LD Playground</h2>
333333
</div>
334334
</div>
335335

336-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsonld/8.3.3/jsonld.min.js" integrity="sha512-qXq10yTPXuAafT+EQsX+5QUyVMR97DVc/YSvCuFTp9MeD8S7UozSMP/1m//R1AHTJFE8svXc0Cnz/9PmnseD4w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
337336
<script src="./editor.bundle.js"></script>

0 commit comments

Comments
 (0)