aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-02-03 14:29:24 +0000
committers-ol <s-ol@users.noreply.github.com>2021-02-03 14:32:43 +0000
commitbea3922acce31cedd3f871305194f780978b2a11 (patch)
treea47c0060f85250037b025074a92012e7d8f4b740
parentfix name/time header styling (diff)
downloadfedidag-bea3922acce31cedd3f871305194f780978b2a11.tar.gz
fedidag-bea3922acce31cedd3f871305194f780978b2a11.zip
lazy-load graph.json
-rw-r--r--lib/graph.json (renamed from src/graph.json)0
-rw-r--r--src/index.js4
2 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.json b/lib/graph.json
index a1f67d5..a1f67d5 100644
--- a/src/graph.json
+++ b/lib/graph.json
diff --git a/src/index.js b/src/index.js
index c90c3ab..fb48d15 100644
--- a/src/index.js
+++ b/src/index.js
@@ -56,9 +56,9 @@ const loadUser = async (id) => {
}
const loadData = async () => {
- const raw = await require('./graph.json');
+ const raw = await import('../lib/graph.json');
const data = await jsonld.frame(
- raw,
+ raw.default,
{
'@context': context,
type: 'Document',